The objective of this assignment is to assess your skills and understanding of backend development using Express.js and MongoDB. You will be required to create a simple RESTful API that performs CRUD (Create, Read, Update, Delete) operations on a collection in a MongoDB database.
Creating a CRUD Backend API where we can perform Create,Read, Update, Delete Operation using Nodejs, ExpressJs, MongoDB.
Checkout the Website CRUD Operation Backend API
Backend API Sample Postman Documentation Link
- Create New Item
Users can able to create a new item by entering details such title, description, imgUrl, size, color, price .
- Get List Items
Users can able to view the list of all added items.
- Get Specific Item
User can able to view the Specific Item based on the id.
- Update Specific Item
User can able to update the Specific Item based on the id.
- Delete Specific Item
User can able to delete the Specific Item based on the id.
-
/api/items/
To add a new item hit the following URL with a post request:
http://furationtech.onrender.com/api/items- /api/items/
To Display the list of all item hit the following URL with a get request:
https://furationtech.onrender.com/api/items -
/api/items/:id
To get the details of specific items, hit the following URL with a get request:
http://furationtech.onrender.com/api/items/:id -
/api/items/:id
To update the existing specific item, hit the following URL with a put request:
https://furationtech.onrender.com/api/items/:id -
/api/items/:id
To delete the existing specific item, hit the following URL with a delete request:
http://furationtech.onrender.com/api/items/:id- Version Control System: Git
- VCS Hosting: GitHub
- Integrated Development Environment: VSCode
For development, you will only need Node.js and a node global package installed in your environement and mongodb for database.
- Node Installtion on Windows
Go on to the official Node.js website and download the installer. Also, be sure to have
.git
available in your PATH,npm
might need it (You can find git). - Other operating System You can find more information about the installation on the official Node.js website and the official NPM website.
If the installation was successful, you should be able to run the following command.
$ node --version
v16.13.0
$ npm --version
8.2.0
If you need to update npm
, you can make it using npm
! Cool right? After running the following command, just open again the command line and be happy.
$ npm install npm -g
-
Open terminal.
-
Change the current working directory to the location where you want the cloned directory.
$ git clone https://github.com/rohit8450/FurationTech
-
Install all the dependencies by running :
npm install
-
Run npm start to run the project at local host, port 8000:
$ npm start
Open a/nice/path/to/a.file
then edit it with your settings. You will need:
- A setting
- one more setting
- Another one more setting