A modern web application for tracking shipments and managing logistics operations. Built with HTML, CSS, JavaScript (frontend) and Node.js + Express + MongoDB (backend).
- User registration and authentication with email verification
- Real-time shipment tracking
- Search shipments by Tracking ID or Order ID
- User profile management (change username and password)
- Responsive design for all devices
- Secure session management
- Clean and modern UI
- Node.js (v16+ recommended)
- MongoDB (local or Atlas)
- Web server (optional for static hosting)
- Modern web browser
-
Clone the repository:
git clone https://github.com/LOVENISH87/LogiTrack.git cd LogiTrack/backend -
Create a .env in backend/ (or set env vars) with:
MONGO_URI=<your_mongodb_connection_string> PORT=5000 JWT_SECRET=<your_jwt_secret> -
Install and run backend:
npm install npm start
-
Open the frontend in a browser (static files are served from the backend at http://localhost:5000 if you use
express.static), or openfrontend/index.htmldirectly while the API runs at http://localhost:5000/api
Build and run using the included Dockerfile:
docker build -t logitrack-backend ./backend
docker run -e MONGO_URI=<your_mongo_uri> -e JWT_SECRET=<secret> -p 5000:5000 logitrack-backendFrom the backend directory you can run seed scripts:
node seedProducts.js
node seedAgents.js- The app uses MongoDB via Mongoose models in
backend/models/. - If you see any references to MySQL or PHP in this repo, they are outdated and will be removed in a future cleanup.