Skip to content

himuexe/Hotel-Booking-Fullstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting Up the Hotel Booking App

This guide will walk you through the process of setting up the Hotel Booking App on your local machine.

Prerequisites

Before you begin, ensure you have Node.js installed on your system.

Cloning the Repository

Start by cloning the repository to your local machine:

git clone https://github.com/himuexe/Hotel-Booking-Fullstack.git
cd hotel-booking-fullstack

Backend Configuration

  1. Environment Files: Navigate to the backend folder and create two files: .env and .env.e2e. Add the following contents to both files:

    MONGODB_CONNECTION_STRING=
    
    JWT_SECRET_KEY=
    FRONTEND_URL=
    
    # Cloudinary Variables
    CLOUDINARY_CLOUD_NAME=
    CLOUDINARY_API_KEY=
    CLOUDINARY_API_SECRET=
    
    # Stripe
    STRIPE_API_KEY=
    
  2. MongoDB Setup:

    • Sign up for an account at MongoDB Atlas.
    • Create a new cluster and follow the instructions to set up a new database.
    • Once set up, obtain your MongoDB connection string and add it to the MONGODB_CONNECTION_STRING variable in your .env files.
    • For the .env.e2e setup see "running automated tests" below
  3. Cloudinary Setup:

    • Create an account at Cloudinary.
    • Navigate to your dashboard to find your cloud name, API key, and API secret.
    • Add these details to the respective CLOUDINARY_* variables in your .env files.