/hotel-reservation-api

Hotel Reservation CRUD API

Primary LanguageGo

Hotel Reservation CRUD API

Project

  • users -> book room from an hotel
  • admins -> going to check reservation/bookings
  • Authentication and authorization -> JWT tokens
  • Hotels -> CRUD API -> JSON
  • Rooms -> CRUD API -> JSON
  • Scripts -> datasabe management -> seeding, migration

Resources

MongoDb

Documenation

https://www.mongodb.com/docs/drivers/go

Install

go get go.mongodb.org/mongo-driver/mongo

gofiber

Documentation

https://docs.gofiber.io

Install

go get github.com/gofiber/fiber/v2

Docker

Install mongodb as Docker container

docker run --name mongodb -d mongo:latest -p 27017:27017

Run the API as Docker container

make docker