Skip to content

A simple logistics tracking system that simulates train shipments, cargo weights, and repair history. Exposes a RESTful API built with Node.js, Express, and SQLite, allowing you to perform full CRUD operations on trains, shipments, cargo items, and repair records.

Notifications You must be signed in to change notification settings

justtcallmejayy/rail_logistics_sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rail Logistics Simulation

A simple REST API to manage trains, shipments, cargo items, and repair history.

Setup

git clone <repo-url>
cd rail-logistics-sim
npm install
npm run dev

Database

  • SQLite DB is created on startup.
  • Seed data with:
npm run seed

API Endpoints

  • Trains: GET /trains, POST /trains, GET /trains/:id, PUT /trains/:id, DELETE /trains/:id
  • Shipments: GET /shipments, POST /shipments, GET /shipments/:id, PUT /shipments/:id, DELETE /shipments/:id
  • Cargo: GET /cargo, POST /cargo, GET /cargo/:id, PUT /cargo/:id, DELETE /cargo/:id
  • Repairs: GET /repairs, POST /repairs, GET /repairs/:id, PUT /repairs/:id, DELETE /repairs/:id

Notes

  • Add a .env file for environment variables if needed.
  • The server runs on http://localhost:3000 by default.

About

A simple logistics tracking system that simulates train shipments, cargo weights, and repair history. Exposes a RESTful API built with Node.js, Express, and SQLite, allowing you to perform full CRUD operations on trains, shipments, cargo items, and repair records.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published