Inspection of certain parts of factory
- Node.js
- NestJS
- React.js
- Vite
- MySQL
- Navigate to the server folder:
cd server - Run npm install
npm i - Reset the database:
npm run reset-db - Start the backend in development mode:
npm run start:dev
- Navigate to the client folder:
cd client - Run npm install
npm i - Start the frontend in development mode:
npm run dev
- Create Inspection (YET_TO_START): Location is required, scheduling start date is optional.
- Assign Inspector (YET_TO_START): Inspector is required, can change start date.
- Start Inspection: Moves from
YET_TO_START→IN_PROGRESSand populatesactualStartDateTime. - Complete Inspection: Moves from
IN_PROGRESS→COMPLETEDwith result (PASSorFAIL) and optional comments, populatesendDateTime.
duration = endDateTime - actualStartDateTime- If
startDateTimeor scheduled date is null on start, it will default toactualStartDateTime.
- Only inspections with
IN_PROGRESSstatus can be moved toABANDON. - Inspector is unassigned.
- Cases triggering abandonment:
- Manager deletes the inspector user.
- Manager changes the inspector's role to manager.
- Behavior by status:
YET_TO_START→ unassigned.COMPLETED→ remains assigned.
- SM size
- Swagger
- Common Toast
- Pagination
- Error Handling