- Clone this repo:
git clone https://github.com/SambathSams/CRUDSample.git
- Install dependencies using npm javascript package manager:
npm install
- Start MongoDB server on port:27017 in terminal :
mongod --port 27017 --dbpath <YOUR PATH>
- Open MongoDB Compass. Create Local MongoDB Database as follows : DatabaseName: EmployeeDB and CollectionName: employees
- Start node server with nodemon:
nodemon server.js
(or) Simply usenode server.js
- Tune to url:
http://localhost:3000/employee