The app let users manage products and place customer orders, An order can have multiple products, and stock levels should update when an order is created.
The frontend display:
- A list of products with stock.
- A way to create an order with one or more products.
- A way to view order details.
- Product
- can create product
- Dipslay all products
- Orders
- create orders
- update stocks according to user actions
(Backend)
- Node.js
- Express.js
- mySql
- Sequelize ORM
- Typescript
(frontend)
- React
- React Query
- tailwind
git clone https://github.com/Bhushan-04/optimum.git
cd backendnpm installCreate a .env file in the root and setup cred:
FRONTEND_URL=
DB_USER=
DB_PASS=
DB_NAME=
DB_HOST=
PORT=
- Make sure mysql is running locally.
- Create database or use sequelize sync:
Tables created: Products, Orders, Order_items.
npm run devserver gets started it will tell on which port it is on.
once backend is running then on frontend in new terminal tab
cd frontend npm installCreate a .env file in the root and setup cred:
VITE_BACKEND_URL=
npm run devCheck out the demo video: Watch Demo