https://github.com/amolpalwe2002/inventory-management-system
This Inventory Management System is a backend application designed to streamline the management of stock levels for businesses. It provides a secure interface for administrators to manage inventory items while allowing store managers to track stock and request replenishments.
https://github.com/amolpalwe2002/inventory-management-system
auth authorization expressjs jwt-authentication jwt-token middleware nodejs
Last synced: 3 months ago
JSON representation
This Inventory Management System is a backend application designed to streamline the management of stock levels for businesses. It provides a secure interface for administrators to manage inventory items while allowing store managers to track stock and request replenishments.
- Host: GitHub
- URL: https://github.com/amolpalwe2002/inventory-management-system
- Owner: amolpalwe2002
- Created: 2024-09-18T04:43:38.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-09-20T07:00:23.000Z (9 months ago)
- Last Synced: 2025-01-28T22:48:59.710Z (5 months ago)
- Topics: auth, authorization, expressjs, jwt-authentication, jwt-token, middleware, nodejs
- Language: JavaScript
- Homepage:
- Size: 107 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Inventory Management System
## Overview
This is a backend for an Inventory Management System allowing admins to manage stock levels and store managers to track inventory.
## Setup
1. Clone the repository.
2. Run `npm install` to install dependencies.
3. Create a `.env` file and add your MongoDB connection string and JWT secret.
4. Start the server with `npm run dev`.## API Endpoints
### Auth
- `POST /api/auth/register`: Register a new user.
- `POST /api/auth/login`: Login a user.### Inventory
- `POST /api/inventory`: Add a new inventory item (Admin only).
- `PUT /api/inventory/:id`: Update an inventory item (Admin only).
- `DELETE /api/inventory/:id`: Delete an inventory item (Admin only).
- `GET /api/inventory`: Get all inventory items.### Requests
- `POST /api/requests`: Request an inventory item (Store Manager only).
- `PATCH /api/requests/:id`: Approve or reject a request (Admin only).
- `GET /api/requests`: Get all requests (Admin only).