Skip to content

Anubhav-Ghosh1/Railway_Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Railway_Tracker

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.

Railway_Tracker

Features

  • 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.

Installation

To get a local copy up and running, follow these steps:

Prerequisites

  • Node.js and npm installed on your machine.
  • A valid API key for the Indian Railways API.

Setup

  1. Clone the repository:

    git clone https://github.com/Anubhav-Ghosh1/Railway_Tracker.git
    cd train-finding-app
  2. Install the dependencies:

    npm install
  3. Create a .env file in the root directory and add your API key:

    REACT_APP_API_KEY=your_api_key_here
    
  4. Start the development server:

    npm start

Usage

  1. Open your browser and navigate to http://localhost:3000.
  2. Enter the names or codes of the departure and destination stations.
  3. Click on the "Search" button to find available trains.
  4. View the list of trains with their details such as departure time, arrival time, and route.

API Integration

This app uses the Indian Railways API to fetch real-time data. To use the API:

  1. Obtain an API key from the Indian Railways API

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published