This project is a Supply Chain Management (SCM) system designed for a production company in Kandy. The system manages the distribution of products across multiple cities using a combination of railway and truck transportation. Key features include scheduling based on railway capacity, managing truck routes, and ensuring driver roster constraints. The system also provides comprehensive reporting, including sales reports, popular items, and driver/vehicle work hours. This project includes database design, procedures, and triggers to maintain data consistency and support detailed analytics.
- admin: The admin panel for managing supply chain operations.
- back-end: The backend API for handling database operations and business logic.
- customer-end: The customer-facing interface for placing orders and tracking shipments.
- database: Database files and configuration for storing SCM data.
Before running the project, ensure all required dependencies are installed in the appropriate directories.
-
Install Root Dependencies:
npm install
-
Install Frontend Dependencies: Navigate to the
customer-end
directory and install dependencies:cd customer-end npm install cd ..
-
Install Backend Dependencies: Navigate to the
back-end
directory and install dependencies:cd back-end npm install cd ..
-
Install Admin Dependencies: Navigate to the
admin
directory and install dependencies:cd admin npm install cd ..
-
Install Driver Dependencies: Navigate to the
driver-and-assistance
directory and install dependencies:cd driver-and-assistance npm install cd ..
-
Set up
.env
environment:
Navigate to theadmin/
directory and create an.env
file like.env.example
and insert your API key.
Navigate to theback-end/
directory and create an.env
file like.env.example
and insert your database credentials.
To start the React frontend server on localhost:3000
, use the following command from the root directory:
npm run customerend
To start the Driver,Assistant frontend on localhost:3002
, use the following command from the root directory:
npm run driverend
To start the admin frontend on localhost:3003
, use the following command from the root directory:
npm run adminend
To start the backend server on localhost:9000
, use the following command from the root directory:
npm run backend
To start the all servers concurrently at once, use the following command from the root directory:
npm start