Skip to content

It provides a streamlined way to perform CRUD (Create, Read, Update, Delete) operations on these items, allowing clients to interact with the database through structured endpoints. Here’s an overview of its main features

Notifications You must be signed in to change notification settings

vikash0p/backendHouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home Decor API

This Home Decor API is designed to manage a catalog of home decor items, such as furniture, lighting, and accessories. Built with Node.js, Express, and MongoDB, it allows CRUD operations for managing items by category, location, price, and other details. It’s ideal for e-commerce platforms and inventory management.

Features

  • Create a new decor item (POST)
  • Read all decor items or by ID (GET)
  • Update an existing decor item by ID (PUT)
  • Delete a decor item by ID (DELETE)

Technologies

  • Node.js and Express for backend logic
  • MongoDB with Mongoose for database management
  • RESTful API for easy integration

Installation

Clone the repository:

git clone https://github.com/yourusername/home-decor-api.git


cd home-decor-api

npm install

MONGODB_URI=<your_mongodb_uri>
PORT=3000

npm start

{
  "title": "Modern Table Lamp",
  "category": "Lamp",
  "location": "New York, USA",
  "price": 120,
  "image": "https://example.com/image.jpg",
  "description": "A stylish table lamp with a minimalist design."
}

### Summary
Now, you have the complete code structure for your Home Decor API, including the server setup, model, routes, and README documentation. Make sure to replace placeholders like `<your_mongodb_uri>` and `yourusername` with your actual MongoDB URI and GitHub username. Let me know if you need any further assistance!

About

It provides a streamlined way to perform CRUD (Create, Read, Update, Delete) operations on these items, allowing clients to interact with the database through structured endpoints. Here’s an overview of its main features

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published