This project is a backend REST API developed using Node.js, Express.js, and MongoDB. The system allows users to manage product inventory through API requests. It includes authentication features and CRUD operations for product management.
The application demonstrates how backend services can be used to store, retrieve, update, and delete product information using a database.
- User Registration
- User Login
- Create Product
- View All Products
- Update Product Details
- Delete Product
- Secure API using JWT Authentication
- Node.js
- Express.js
- MongoDB
- JWT Authentication
- Thunder Client (for API testing)
server/
│
├── src/
│ ├── controllers/
│ ├── models/
│ ├── routes/
│ ├── middlewares/
│ └── db/
│
├── server.js
├── package.json
└── package-lock.json
- POST /api/v1/auth/register – Register a new user
- POST /api/v1/auth/login – Login user and receive authentication token
- POST /api/v1/products – Create a new product
- GET /api/v1/products – Get all products
- PUT /api/v1/products/:id – Update product information
- DELETE /api/v1/products/:id – Delete a product
- Install dependencies
npm install
- Start the server
npm run dev
- Server will run on
http://localhost:5000
This project uses MongoDB as the database to store user information and product inventory data.
https://drive.google.com/file/d/1lt60FtEtbYsa1YTDc2wmisFEEXR41yco/view?usp=sharing
Team ID: SWTID-2026-9368 Project: Product Inventory Management System