- Node.js 8.14.0
- MongoDB 3.6
- Start mongodb server - create a folder in any directory - "mongo_db" and then run below command in a command prompt - -> mongod --dbpath F:\Work\mongo_db
- Open command prompt and move your cursor into assessments directory - -> cd assessments/
- Install application dependencies - -> npm install
-
-> node validatePassword.js (It will print the validity result of all the passwords in a given array).
-
-> node server.js (It will start a web service(server) on port 8080)
- POST URI - http://localhost:8080/todo/add Body - "Weekly call at 8 AM" Headers - "content-type" : "text/plain" "Accept": "application/json"
- GET URI - http://localhost:8080/todo Headers - "Accept": "application/json"
- DELETE URI - http://localhost:8080/todo/delete/:id