- Clone the project
- Run
npm install
- Change the
db.config.js
file to your database credentials - Run
node server.js
or your file name instead os server.js, to start the server - Check the API in postman or any other API testing tool
M = Model = DB querying V = View = HTML, VUEjs, ReactJS, PugJS C = Controller = Logic parent, data manipulation part
- localhost/api/users = user hits this url/endpoint
- Routes
- Controller a. Connect DB
- Controller Calls Model
- Returns queried data from model back to controller
- Data format / Logic apply in controller
- Return data back to api