The mvc, mvvm architecture created with VS, vscode, pycharm and other tools, and the default of asp.net are the front-end and back-end mixed together
Three-tier architecture, that is, the front-end code and back-end code are layered and managed according to functions. not mixed
Front and rear ends are not separated
Template rendering technology in python render_template('xxx', parameter=value)
The front end and the back end are also mixed together, but not in one file. The three-tier architecture we usually say (UI, DAL, BLL)
is to conform to the idea of "high cohesion, low coupling", and divide each functional module into presentation layer (UI), business logic layer (BLL) and data Access layer (DAL) three-tier architecture, each layer uses interfaces to access each other, and the entity class (Model) of the object model is used as the carrier of data transmission. The entity classes of different object models generally correspond to different tables and entities of the database. The attributes of the class are consistent with the field names of the database table.
Separation of front and rear ends
Front-end development and back-end development, for example, student A is responsible for the UI front-end, and student B is responsible for the API interface {feedback of data, response to data,}
The backend returns a json string, and the jsonify (json object)
frontend uses Aajx to request data ajax (commonly used).
Some large-scale systems [weather report interface, small program interface, enterprise WeChat interface] all provide data from the backend, and we only have to pass the agreement The corresponding data can be obtained by accessing the interface.
Our system is separate from these systems.
RESTful
It is an idea, not a technology.
Http common request method
GET: generally used to obtain data
POST: generally used to add data
PUT: generally used to modify data
DELETE: generally used to delete data
These request methods are not limited to these functions, but only suggested, which is more in line with RESTFUL thinking. POST can also add, query, delete, modify functions