- Frontend: React/TypeScript
- Backend: Node.js/Express
- Database: PostgreSQL (managed via Prisma ORM)
https://www.youtube.com/watch?v=Ai4cbtMCZEE
It supports two user types:
- Browse products
- Manage a shopping cart
- Place orders
- Maintain payment methods and addresses
- Add/edit products
- Manage stock across warehouses
- Process orders
-
Navigate to the server directory:
cd server -
Install dependencies:
npm install -
Configure environment: Create a .env file with the following content:
PORT=3006
DATABASE_URL="postgresql://<USER>:<PASSWORD>@<HOST>:<PORT>/<DB_NAME>"
JWT_SECRET="your_jwt_secret"
- Apply database migrations & seed data:
npx prisma migrate deploy
npx prisma db seed
- Start the backend
npm run dev
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install -
Configure API URL: Create a .env file with:
REACT_APP_API_URL=http://localhost:3006 -
Start the frontend:
npm start
All database models and seeding scripts reside in the prisma folder:
- Data models: server/prisma_ORM/schema.prisma
- Defines models like User, Customer, Staff, Product, Warehouse, Stock, Order, etc.
- Seed data script: server/prisma_ORM/seed.ts -Populates initial database data.
- Migration history: prisma/migrations/ -Stores database migration records.
Note: Ensure your PostgreSQL server is running, and the DATABASE_URL in your .env matches its connection string before starting the backend.
- Abhishek Chandra: Chandra6@mail.uc.edu Frontend
- Shashank Sathiyanarayaanan: sathiysk@mail.uc.edu DB and Frontend Backend Connection
- Luu Dang: luudh@mail.uc.edu Backend