/UnStop-Assingment

The Seat Reservation System is a web application developed using Node.js, Express, MongoDB for the backend, and React for the frontend.

Primary LanguageJavaScript

Seat Reservation System

The Seat Reservation System is a web application developed using Node.js, Express, MongoDB for the backend, and React for the frontend.

Deployed Link 🚀

The application is deployed and can be accessed at: https://unstop-train-reservation.netlify.app/


How to Run Locally ❔

To run the Seat Reservation System locally, follow these steps:

  1. Clone or download the code repository.

  2. Open the project folder in your preferred terminal or code editor, such as Visual Studio Code.

  3. Install the required npm packages by running the following command in both the client and server directories:

    npm install
  4. Start the backend server:

    • Navigate to the backend directory using the terminal.

    • Create a file called .env in the backend directory and add the following keys with the correct details:

      MONGO_URL=your_mongodb_url
      PORT=chosen_port_number
      
    • Run the following command to start the server:

      npm run server

      Make sure to replace your_mongodb_url with your actual MongoDB URL or local MongoDB URL, and chosen_port_number with the desired port number (suggested: greater than 800).

  5. Start the frontend:

    • Open a new terminal instance.

    • Navigate to the frontend directory using the terminal.

    • Run the following command to start the frontend:

      npm run start
  6. Once the server and frontend are up and running, you can access the Seat Reservation System locally by opening your web browser and visiting:

    http://localhost:3000/


Contact Information 📞

If you have any further inquiries or need additional information, please feel free to contact me via email or phone: