Skip to content

hoadesign09/API-BookingHotel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS MY API FOR HOTEL BOOKING WEBSITE APPLICATION

This project using Nodejs and MongoDB Atlas to create API. It uses the MVC structure.

This is the first update on July 25, 2023. We will update if there is a change in the resource.

INSTALLATION AND USE INSTRUCTIONS

Install Nodejs

You can install nodejs at https://nodejs.org/en and choose the appropriate version. We recommend you to choose the version recommended by Nodejs.

Clone project

  1. Open terminal and point to an existing empty directory or create a new one.
  2. Use "git clone https://github.com/hoadesign09/API-BookingHotel.git" command to clone project
  3. After cloned the project, open the folder with any editor you have, then change the "MONGO" and "JWT" attribute in the ".env" file available in the source code. (The "MONGO" attribute is the path to your own Mongo Atlas and the "JWT" property is initialized by you by the command "openssl rand -base64 32")
  4. After the changes are done, launch the command "npm start" and enjoy.

Note: If you have problems while resetting the project, contact me via my mail.

"Do not hesitate to approach the higher levels of knowledge."

FUNCTIONS AVAILABLE WITH VERSION 1.0

Hotels Methods

  1. Create method
  2. Update method
  3. Detele method
  4. GetAll method
  5. GetById method
  6. CountByCity method
  7. CountByType method

Rooms Methods

  1. Create method
  2. Update method
  3. Detele method
  4. GetAll method
  5. GetById method

Users Methods

  1. Create method
  2. Update method
  3. Detele method
  4. GetAll method
  5. GetById method
  6. Init Token and Authentication
  7. Authorization account

About

This project using Nodejs and MongoDB Atlas to create API. It uses the MVC structure.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published