June 2018
Intermediate to advanced
348 pages
8h 19m
English
Let's start by creating the Project structure for our source code. Create the following directories and files in your working directory, as shown in the following screenshot:

The src folder contains three subfolders: models, routes, and config. In this chapter, we will just use the routes folder and the teams-api.js file. The other two will be explored in the next chapter when we talk about Databases and MongoDB.
The goal of the routes folder is to host all the API Routes declaration. We have declared our routes in the server.js file; it might be a good idea if we are working on a small project, but it is not a good idea ...
Read now
Unlock full access