Track and Forecast is a web application designed to help users track Mumbai local trains by selecting a source station and a destination station. It provides real-time data on train schedules, status, and alternate paths to make commuting more convenient for users. The data is fetched through an API created by us using ChatGPT, as real-time data from official sources is unavailable.
- Alfiya Inamdar
- Shreya Bagmare
- Arpita Gupta
- Frontend: React
- Backend: Node.js, Express
- Database: MongoDB
- API: Custom API built with ChatGPT
- Track Local Trains: Allows users to select the source and destination stations to view real-time train schedules.
- Alternate Path Suggestions: Suggests alternate routes in case of delays or cancellations.
- Train Status: Provides information on the current status of trains.
- Node.js - Ensure Node.js is installed on your system.
- MongoDB - Set up a MongoDB database (if needed).
git clone https://github.com/Mini-Project2024-API/Track-and-Forecast.git- Navigate to the backend folder:
cd backend- Install dependencies:
npm install- Set up your .env file for configuration (e.g., database connection URL).
MONGO_URI=your-mongo-uri
JWT_SECRET=your-secret
EMAIL_USER=your-email
EMAIL_PASS=your-password- Start the backend server:
npm start- Navigate to the frontend folder:
cd frontend- Install dependencies:
npm install- Start the frontend development server:
npm startSince real-time Mumbai local train data is not publicly available, we have created a custom API to simulate train data. This API is used by the frontend to fetch data based on user inputs.
- Open the app in your browser.
- Select the source station and destination station.
- View the available trains, train status.
- Fork the repository
- Create your feature branch (git checkout -b feature/your-feature)
- Commit your changes (git commit -m 'Add some feature')
- Push to the branch (git push origin feature/your-feature)
- Create a new Pull Request