Skip to content

bisw4sh/Hotel-Booking-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hotel Booking Application

This is a sample project with three directories: admin, client, and api. Each directory contains its own codebase.

Directory Structure

  • admin: Contains code for the admin panel.
  • client: Contains code for the client application.
  • api: Contains code for the API server.

Installation and Usage

  • Replace the existing MONGO url from .env file in ./api/.env

  • Then, import the dummy data to mongoDB from ./api/dummy-datas and use the credentials as necessary.

To get started, follow these steps in 3/4 different terminals:

1. Admin Directory

cd admin
npm install
npm run dev

2. Client Directory

cd client
npm install
npm run dev

3. API Directory

cd api
npm install
npm start

4. Socket Directory(Optional for real time reservation)

cd api/socket
npm start