Task overview: Build a REST API in “Nodejs” using MongoDB or any SQL database. For registering user details and viewing all the user details registered in the database.
Tech Stack: Backend: Nodejs / Expressjs Database: MongoDB API Protocol: REST
Task Todo:
- Create a server.
- Connect the server to the given database options which is mentioned in the tech stack section.
- Create a RESTful API endpoint for Registering user details and to fetch all the user details which is present in the database.
Note:
For the project to run, the user needs to download the following 1- Node modules 2- express 3- mongoose and mongodb 4- other project dependencies such as body-parser
To Fetch or view user details : Type: "localhost:3000/api/users"