Skip to content

rohit8450/FurationTech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD Backend API

Problem Statement

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.

Introduction

Creating a CRUD Backend API where we can perform Create,Read, Update, Delete Operation using Nodejs, ExpressJs, MongoDB.


🔗 Important Links

Checkout the Website CRUD Operation Backend API


Features

  • 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.


Routes & URL

To delete the existing specific item, hit the following URL with a delete request:

http://furationtech.onrender.com/api/items/:id

Tools Used

nodeJS logo expressjs logo mongoDB logo postman logo vscode logo

  • Version Control System: Git
  • VCS Hosting: GitHub
  • Integrated Development Environment: VSCode

Requirements

For development, you will only need Node.js and a node global package installed in your environement and mongodb for database.

Node

  • 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


To run the project on your local machine:

  1. Open terminal.

  2. Change the current working directory to the location where you want the cloned directory.

    $ git clone https://github.com/rohit8450/FurationTech
    
    
  3. Install all the dependencies by running :

    npm install
    
    
  4. Run npm start to run the project at local host, port 8000:

    $ npm start
    
    

Configuration

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

Screens

Add new Item:

Get List Item:

Get Specific Item:

Update Specific Item:

Delete Specific Item: