A React.js project that helps users find trains between stations using the Indian Railways API. This app provides information about trains, including train schedules, routes, and availability between stations.
- Search for trains between two stations.
- View train details such as schedules, routes, and availability.
- User-friendly interface with React.js.
- Real-time data fetched from the Indian Railways API.
To get a local copy up and running, follow these steps:
- Node.js and npm installed on your machine.
- A valid API key for the Indian Railways API.
-
Clone the repository:
git clone https://github.com/Anubhav-Ghosh1/Railway_Tracker.git cd train-finding-app
-
Install the dependencies:
npm install
-
Create a
.env
file in the root directory and add your API key:REACT_APP_API_KEY=your_api_key_here
-
Start the development server:
npm start
- Open your browser and navigate to
http://localhost:3000
. - Enter the names or codes of the departure and destination stations.
- Click on the "Search" button to find available trains.
- View the list of trains with their details such as departure time, arrival time, and route.
This app uses the Indian Railways API to fetch real-time data. To use the API:
- Obtain an API key from the Indian Railways API