November 2018
Beginner
132 pages
2h 57m
English
We will structure our application in a simple and modular manner, following a slight modification of the MVC architectural pattern.
We will create controllers in a controllers folder, which will house the business logic for our application. Our data objects will also sit in a similarly named models folder. We will also create a middleware folder to house our application's middleware functions.
An index.js file will be created to serve as the entry point for our server. We will load up the required dependencies, configure our middleware, and start our server from this file.
To create the required folders, we can run the following command in the Terminal:
mkdir controllers middleware models
To create the entry point file, we can run ...
Read now
Unlock full access