Giter Site home page Giter Site logo

charlespossible / hotel-booking-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from imran99744/hotel-booking-api

0.0 0.0 0.0 35 KB

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.

Shell 0.51% JavaScript 99.49%

hotel-booking-api's Introduction

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.

hotel-booking-api's People

Contributors

imran99744 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.