This full-stack MERN application allows businesses to list and manage products and enables customers to browse, shop, and payβall in one platform.
- Business Management: Add, update, and manage product details and inventory.
- Customer Experience: Customers can explore products and make purchases easily.
- Secure Payment: Integrated with Razorpay for hassle-free payment processing.
- Frontend: React
- Backend: Node.js & Express
- Database: MongoDB
- Authentication: JSON Web Token (JWT)
- Payment Gateway: Razorpay
Inventory_Management/
β
βββ Backend_Inventory_Management/ # Server-side code and API routes
β
βββ Frontend_Inventory_Managment/ # Client-side React application
βββ public/ # Contains static assets (e.g., screenshots)
Follow these steps to set up the application locally:
git clone <repo_url>
cd Inventory_Management
cd Frontend_Inventory_Managment
npm install
cd Backend_Inventory_Management
npm install
Create a .env
file in the Frontend_Inventory_Managment
directory and add:
RZP_KEY_ID=your_key
Create a .env
file in the Backend_Inventory_Management
directory and add:
PORT=3000
MONGO_URI=your_db_uri
API_VARI=your_api_variant
PASS=your_app_id
JWT_SECRET=your_jwt_secret
EMAIL=your_email
RZP_KEY_ID=your_key_id
RZR_KEY_SECRET=your_key_secret
Replace placeholders (your_key
, your_db_uri
, etc.) with actual credentials.
cd Backend_Inventory_Management
npm start
Open a new terminal and run:
cd Frontend_Inventory_Managment
npm start
Access the application at http://localhost:3000
.
- POST
/api/products
: Add a new product to the inventory. - GET
/api/products
: Fetch all available products. - POST
/api/payment
: Handle customer payments.
For more details, refer to the backend code.
We welcome contributions!
- Fork the repository.
- Create a feature branch.
- Submit a pull request.
This project is licensed under the MIT License.