A full-stack exam-style project for spare parts, stock in/out, users, and reports.
- Open
backend. - Copy
.env.exampleto.env. - Install dependencies:
npm install
- Create the database:
- Run the SQL in
backend/db.sqlon MySQL.
- Run the SQL in
- Start the backend:
npm run devornpm start
- Open
frontend. - Install dependencies:
npm install
- Start the dev server:
npm run dev
- Backend uses Express, MySQL, bcryptjs, express-session.
- Frontend uses React, Axios, Tailwind CSS, Vite.
- The login endpoint uses session authentication.
- Reports include daily stock out and stock status with SQL JOINs and GROUP BY.