Skip to content

This project is a hotel booking API built with Node.js and Express.js. It includes user authentication with JWT role-based authorization verification system and error handling best practices to ensure a secure and seamless experience.

Notifications You must be signed in to change notification settings

th3inth/hotel-booking-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Hotel Booking API with Node.js and Express.js

Introduction

This project is a hotel booking API built with Node.js and Express.js. It includes user authentication with JWT role-based authorization verification system and error handling best practices to ensure a secure and seamless experience.

Features

The following are the features of the hotel booking API:

  • User authentication with JWT role-based authorization verification system.
  • Error handling best practices to ensure a seamless experience.
  • CRUD operations for hotels, rooms, bookings, and users.

Installation

  • Clone the repository: git clone https://github.com/<your-username>/hotel-booking-api.git
  • Install dependencies: npm install
  • Create a .env file and add the following variables:
    • MONGO_URI: the URI for the MongoDB database.
    • JWT: the secret key for JWT token signing.
  • Start the server: npm start

Technologies Used

  • Node.js
  • Express.js
  • MongoDB
  • JWT

Conclusion

This hotel booking API is a secure and efficient tool for booking hotel rooms. It includes user authentication with JWT role-based authorization verification system, error handling best practices. With the use of Node.js and Express.js, it provides a fast and reliable performance while using MongoDB as its database for efficient data storage.

About

This project is a hotel booking API built with Node.js and Express.js. It includes user authentication with JWT role-based authorization verification system and error handling best practices to ensure a secure and seamless experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.5%
  • Shell 0.5%