Skip to content

ragupari/SCM-project

Repository files navigation

Supply Chain Management System

View Client UI · View Admin UI . View Employee UI

Description

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.

Project Structure

  • 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.

Built With

nodejs mysql react CSS3

Installation

Before running the project, ensure all required dependencies are installed in the appropriate directories.

Steps to Install:

  1. Install Root Dependencies:

    npm install
  2. Install Frontend Dependencies: Navigate to the customer-end directory and install dependencies:

    cd customer-end
    npm install
    cd ..
  3. Install Backend Dependencies: Navigate to the back-end directory and install dependencies:

    cd back-end
    npm install
    cd ..
  4. Install Admin Dependencies: Navigate to the admin directory and install dependencies:

    cd admin
    npm install
    cd ..
  5. Install Driver Dependencies: Navigate to the driver-and-assistance directory and install dependencies:

    cd driver-and-assistance
    npm install
    cd ..
  6. Set up .env environment:
    Navigate to the admin/ directory and create an .env file like .env.example and insert your API key.
    Navigate to the back-end/ directory and create an .env file like .env.example and insert your database credentials.

Running the Application

Frontend

To start the React frontend server on localhost:3000, use the following command from the root directory:

npm run customerend

Driver,Assistant

To start the Driver,Assistant frontend on localhost:3002, use the following command from the root directory:

npm run driverend

Admin

To start the admin frontend on localhost:3003, use the following command from the root directory:

npm run adminend

Backend

To start the backend server on localhost:9000, use the following command from the root directory:

npm run backend

All

To start the all servers concurrently at once, use the following command from the root directory:

npm start

Contributors