Skip to content

2023newbie/booking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Booking Website (MERN Stack)

Booking Website

The website makes booking accommodations while traveling easier. The website includes client-side functionalities such as viewing hotels, searching for hotels, logging in, and registering an account. On the admin-side, the owner can add/edit/delete rooms, track revenue, and monitor occupied rooms.

Demo

*Note: Please open link server-side first.

Project Breakdown

API Server

  • Directory: Server
  • Features:
    • Building api server (MVC model) - CRUD operations
    • Generating schema models
    • Session-cookie to store data login user.
    • Authenticating based on user role.
    • Connect and manage data on MongoDB

Client App

  • Directory: Client App
  • Features:
    • Developing Login/Sign up page
    • Home page, Search page, Detail product page
    • Search page was build on logic to check available room based on date range input, amount of people.
    • Redux/Redux Toolkit to store some
    • React-router
    • See history of transactions

Admin App

  • Directory: Admin App
  • Features:
    • Login page - authenticate role admin.
    • Dash-board to summarize data.
    • Create/Update/Delete Hotel, Room
    • Show all transactions on system
    • User Page - manage and set role for user

Deployment on local

Prerequisites

  • MongoDB
  • NodeJS
  • npm

Client-side (Dir: Client App)

$ cd  client      // go to client folder
$ yarn # or npm i     // install packages
$ npm start     // run it locally

Admin-side (Dir: Admin App)

$ cd  Admin App      // go to client folder
$ yarn # or npm i     // install packages
$ npm start     // run it locally

Server-side (Dir: Server)

$ cd  Admin App      // go to client folder
$ yarn # or npm i     // install packages
$ npm run start:dev     // run it locally