Skip to content

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

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

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

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages