This repository contains the Bi Cycle Store, an Inventory Management Application focusing on backend technologies. It provides robust APIs for managing bicycle inventory and orders. Built using modern tools and technologies, this project demonstrates scalable backend development practices.
- GitHub Repository: Bi Cycle Store
- Live Deployment: Live on Vercel
- Live Demo: Loom Video
- Programming Language: TypeScript
- Frameworks and Libraries:
- Node.js
- Express.js
- Mongoose
- Zod (for validation)
- Database: MongoDB
- Tools:
- MongoDB Compass (Database Management)
- Postman (API Testing)
- CRUD Operations for Products:
- Add, view, update, and delete bicycle details.
- Order Management:
- Place orders and manage inventory dynamically.
- Revenue Calculation:
- Calculate total revenue using MongoDB aggregation.
- Search Functionality:
- Search bicycles by
name,brand, ortypeusing query parameters.
- Search bicycles by
- Inventory Management:
- Automatically update stock levels when orders are placed.
- Handle insufficient stock scenarios.
Email: nion@gmail.com
Password: securePass123
Email: johndoe@gmail.com
Password: securePass123
Email: admin@gmail.com
Password: securePass123
-
Create a Bicycle
- Endpoint:
/createProduct - Method:
POST
- Endpoint:
-
Get All Bicycles
- Endpoint:
/ - Method:
GET - Query:
?searchTerm=type
- Endpoint:
-
Get a Specific Bicycle
- Endpoint:
/:productId - Method:
GET
- Endpoint:
-
Update a Bicycle
- Endpoint:
/:productId - Method:
PUT
- Endpoint:
-
Delete a Bicycle
- Endpoint:
/:productId - Method:
DELETE
- Endpoint:
-
Order a Bicycle
- Endpoint:
/ - Method:
POST
- Endpoint:
-
Calculate Revenue from Orders
- Endpoint:
/revenue - Method:
GET
- Endpoint:
-
Clone the repository:
git clone https://github.com/Nadim-Nion/bi-cycle-store.git cd bicycle-store -
Install dependencies:
npm install
-
Set up environment variables:
Create a.envfile in the root directory with the following variables:MONGO_URI=your-mongodb-connection-string PORT=5000
-
Start the development server:
npm run dev
-
Test the APIs using Postman or your preferred API testing tool.
Use Postman or MongoDB Compass to test API functionality.
Hi, I am Nadim Mahmud Nion. I have recently concluded my graduation from the department of Computer Science and Engineering (CSE) at the Daffodil International University (DIU). I have been learning MERN Stack Web Development since 2022. I am expertise in the following skills:
-
React
-
Express.js
-
TypeScript
-
Mongoose
-
Postman
-
MongoDB Compass
-
NoSQLBooster
-
Node.js
-
MongoDB Atlas
-
JWT
-
Stripe
-
Vite
-
React Router
-
Firebase (Authentication & Hosting)
-
Vercel
-
JavaScript
-
Advanced JavaScript
-
Daisy UI
-
Bootstrap
-
Tailwind
-
HTML5
-
CSS3
-
Media Query
I have built multiple projects using these skills. You are invited to my GitHub profile to know about my projects and don't forget to give a star to my projects.