Coder Social home page Coder Social logo

pratikkhulge / railsathi Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 517 KB

RailSathi is an Express.js-based web application that offers API functionality for checking PNR status and finding trains between stations, providing users with convenient access to essential railway information.

JavaScript 44.22% HTML 53.03% CSS 2.76%
api css express-js html javascript node-js pnrstatus railapi railway-api rapid-api

railsathi's Introduction

RailSathi

RailSathi is an API-based web application built with Express.js and Node.js that allows users to check PNR status and find trains between stations. It provides a convenient way for users to access essential railway information quickly and efficiently.

Features

  • Check PNR status: Users can input their PNR (Passenger Name Record) number to check the status of their train ticket.
  • Find trains between stations: Users can search for trains between two specified stations, getting information about available trains, their timings, and more.

Technologies Used

  • Express.js: A minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
  • Node.js: A JavaScript runtime built on Chrome's V8 JavaScript engine, used for building scalable network applications.
  • Other libraries: This project may also use additional libraries for handling HTTP requests, parsing responses, etc.

Installation

To run RailSathi locally, follow these steps:

  1. Clone this repository to your local machine.
  2. Navigate to the project directory.
  3. Install dependencies by running npm install.
  4. Start the server by running npm start.
  5. Access the application at http://localhost:PORT (where PORT is the port number specified in the configuration or the default port).

Usage

RailSathi provides a simple API that can be accessed programmatically or through a web interface.

API Endpoints

  • Check PNR Status

    • Endpoint: /pnr-status
    • Method: POST
    • Parameters:
      • pnr: The PNR number to check the status.
    • Response: JSON object containing the status of the PNR.
  • Find Trains Between Stations

    • Endpoint: /trains-between-stations
    • Method: POST
    • Parameters:
      • source: The source station code.
      • destination: The destination station code.
      • date: (Optional) The date of travel.
    • Response: JSON object containing information about trains between the specified stations.

Contributing

Contributions are welcome! If you'd like to contribute to RailSathi, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/my-feature).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new feature').
  5. Push to the branch (git push origin feature/my-feature).
  6. Create a new Pull Request.

License

This project is licensed under the MIT License.

railsathi's People

Contributors

pratikkhulge avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

nikhildongre1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.