S
S
Stanislav Pochepko2015-01-28 12:05:57
Software design
Stanislav Pochepko, 2015-01-28 12:05:57

Universal site as a service for a future mobile application. How to create?

Please provide information on the correctness of the site architecture, so that it could be used as a mobile service in the future. Is it possible to implement this or do I need to build a separate application?
I would be very happy with links to articles
In the appendage based on the first comment. As I understand it, using the MVC framework, I will need to implement a special controller that will return the requested models with the specified filter in the request, and the rest of the controllers to display the site?
Sorry, maybe the question is stupid, but I have not yet seen the implementation of a normal combat project.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Andrianov, 2015-02-27
@DJZT

A REST API is a web service that serves both the mobile application and the main site .
Enter a path (area), for example, example.com/api/...for the web service.
The main site can live on example.com/.... In this case, the site returns only page templates. Data is filled with a separate request to the REST API - service, for example, using AXAJ requests.
The site turns out to be lightweight and responsible only for design.
The web service is responsible for the model (data, services).
In the future, at high loads, these roles can be placed on different servers.
Related link: About AngularJS on the ASP.NET MVC platform . It just describes how to make a web service and a website in one ASP.NET MVC application.

K
Kir, 2015-01-28
@angry_bender

The site must send data via the REST API. Then there will be less gestures when implementing the application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question