Skip to content

adeeshajayasinghe/train-booking-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

148 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

train-booking-system

This is a train booking system built using React. It allows users to search for train schedules, book tickets, and manage their bookings.

Setup Guide

Follow the steps below to set up the project on your local machine:

Prerequisites

Make sure you have the following software installed on your system:

  1. Node.js: The app requires Node.js to be installed. You can download and install Node.js from the official website: https://nodejs.org

Getting Started

  1. Clone the repository to your local machine using the following command:
git clone https://github.com/your-username/train-booking-system.git
  1. Navigate to the project front end directory:
cd train-booking-system
  1. Install the dependencies:
npm install
  1. Navigate to the project back end directory using another terminal:
cd train-booking-system/Back-end/src
  1. Install the dependencies:
npm install
  1. Create .env file in the back end directory similar to .env.example file including valid keys.

Configuration

By default, the app runs on localhost:3000. There's no additional configuration needed for local development.

Running the App

To start the development server and run the app, use the following command:

  1. Go to the front end directory:
npm start
  1. Go to the back end directory:
node index.js

The app will be accessible at http://localhost:3000 in your web browser.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors