Skip to content

Repository files navigation

Project logo

Api hotel bookings


API that serves data from hotel bookings.

📝 Table of Contents

🧐 About

API that serves data with entity relationships for hotel bookings. Made with Express, Sequelize and MYSQL. Project from GeeksHubs Academy like Full stack developer student.

Design Database


Entity-relationship diagram that was generated with MYSQL Workbench:

diagram

🏁 Getting Started


Prerequisites


Installing

Install packages npm:

npm install

🎈 Usage

Start the dev server with this command:

npm run dev

Run http://localhost:3000/ in your borwser to do the tests.

Start the production server with this command:

npm start

🎈 Endpoints

Use the endpoints to navigate for the differents types of data of the API

Customers

Method Route Description
Get /customers Show customers
Get /customers/id show customers by id
Get /customers/name/name Show customers by name
Get /customers/lastname/lastname show customers by lastname
Get /customers/id_card/id_card Show customers by id card
Get /customers/phone/phone show customers by phone
Get /customers/email/email Show customers by email

Hotel

GET Route Description
Get /hotel Show hotel
Get /hotel/id show hotels by id
Get /hotel/name/name Show hotels by name
Get /hotel/location/location show hotels by location
Get /hotel/city/city Show hotels by city

Bookings

GET Route Description
Get /bookings Show bookings
Get /bookings/id show bookings by id
Get /bookings/checkin/chekin Show bookings by chekings
Get /bookings/checkout/checkout show bookingd by checkout

🚀 Deployment

https://bookings-production-2f33.up.railway.app/

⛏️ Built Using

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages