An open API service indexing awesome lists of open source software.

https://github.com/wpdas/express_base_structure

A base structure of an API project using Node + Express
https://github.com/wpdas/express_base_structure

Last synced: over 1 year ago
JSON representation

A base structure of an API project using Node + Express

Awesome Lists containing this project

README

          

## Basic MVC API structure

We are using nodemon package to reload the API every time some code is changed.

### Models

The model is the layer responsible for the access to the data, for the validation and consistency of them. Should be used within controllers.

### Controllers

The controller will be responsible for handling the request and will be delivering a response to the user.

### View

The view in this project will be the routes, that will be using the controllers.

### Folders

See the folder structure