This is a train booking system built using React. It allows users to search for train schedules, book tickets, and manage their bookings.
Follow the steps below to set up the project on your local machine:
Make sure you have the following software installed on your system:
- Node.js: The app requires Node.js to be installed. You can download and install Node.js from the official website: https://nodejs.org
- Clone the repository to your local machine using the following command:
git clone https://github.com/your-username/train-booking-system.git
- Navigate to the project front end directory:
cd train-booking-system
- Install the dependencies:
npm install
- Navigate to the project back end directory using another terminal:
cd train-booking-system/Back-end/src
- Install the dependencies:
npm install
- Create .env file in the back end directory similar to .env.example file including valid keys.
By default, the app runs on localhost:3000. There's no additional configuration needed for local development.
To start the development server and run the app, use the following command:
- Go to the front end directory:
npm start
- Go to the back end directory:
node index.js
The app will be accessible at http://localhost:3000 in your web browser.