GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - akashva22/Fleet-Management-System: Chandigarh University-MSc. Data Science Major Project

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
Data Seeding and Simulation
Data Seeding and Simulation
 
 
Models
Models
 
 
api
api
 
 
.DS_Store
.DS_Store
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
alerts_contents.py
alerts_contents.py
 
 
app.py
app.py
 
 
config.py
config.py
 
 
driver_contents.py
driver_contents.py
 
 
live_tracking_contents.py
live_tracking_contents.py
 
 
maintenance_contents.py
maintenance_contents.py
 
 
requirements.txt
requirements.txt
 
 
schema.sql
schema.sql
 
 

Repository files navigation

Fleet Management System (FMS)

A small fleet management and simulation project providing a REST API, a GPS simulator, and pretrained models for maintenance risk prediction.

Prerequisites

  • Python 3.8+ installed
  • PostgreSQL installed (if you want to run the API with a local database)

Quick Start

  1. Clone the repository.
  2. Create and activate a virtual environment (macOS / Linux):
    python3 -m venv venv
    source venv/bin/activate
  3. Install dependencies:
    pip install -r requirements.txt

Configuration

  1. Copy the example environment file and update values:
    cp .env.example .env
    # edit .env and fill in your DB credentials and any other variables
    If .env.example is not present, create a .env with the database connection information you use for the api service.
  2. Keep .env inside both the 'api' and 'Data Seeding and simulation' folder.

Database (PostgreSQL) setup

  1. Create a PostgreSQL user and database (example):
    sudo -u postgres psql
    CREATE USER fms_user WITH PASSWORD 'your_password';
    CREATE DATABASE fms_db OWNER fms_user;
    \q
  2. Import schema (if schema.sql exists at repo root):
    psql -U fms_user -d fms_db -f schema.sql
  3. Run the seed script to populate initial data (if needed):
    python "Data Seeding and Simulation/seed.py"

Running the services

  • Start the API server (from repository root):
    python -m api.server
  • Start the GPS simulator (from repository root):
    python "Data Seeding and Simulation/gps_simulator.py"
  • Run the main application (if applicable):
    python app.py
    Then open http://localhost:5000 (or the port printed by the app).

Models

Pretrained model artifacts are located in the Models/ directory, for example:

  • Models/pm_rf_days_regressor.joblib
  • Models/pm_rf_risk_regressor.joblib
  • Models/component_encoding.joblib

Project structure (top-level)

  • app.py — main application runner
  • api/ — API package (server, routes, services)
  • Data Seeding and Simulation/ — simulator and seed scripts
  • Models/ — pretrained model artifacts
  • requirements.txt — Python dependencies

Troubleshooting

  • If you get DB connection errors, check .env values and ensure PostgreSQL is running.
  • If a module import fails, make sure the virtualenv is activated and pip install -r requirements.txt completed successfully.
  • For paths with spaces (like Data Seeding and Simulation) use quotes when running from shell.

About

Chandigarh University-MSc. Data Science Major Project

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.