Writing a CRUD app with Node.js and MongoDB

added by JavaScript Kicks
6/8/2018 7:32:36 AM


Create a new file, let's name it app.js directly inside the ProductsApp directory touch app.js Open the newly created file named app.js and require all the dependencies we previously installed (ExpressJS and body-parser ) -we will talk about mongoose later- // app.js var express = require('express'); var bodyParser = require('body-parser'); // initialize our express appapp = express(); Next step would be dedicating a port number and telling our express app to listen to that port.