Skip to content

Hotel reservation RESTful JSON API with user registration and authentication. features: list hotels, book available hotels, list rooms, cancel bookings, seed scripting with admin auth on specific endpoints

Notifications You must be signed in to change notification settings

lucaliebenberg/hotel-reservation-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hotel Reservation Backend

Project outline

  • Users -> book form from a hotel
  • Admins -> going to check reservation/bookings
  • Authentication & Authorization -> JWT tokens
  • Hotels -> CRUD API -> JSON
  • Rooms -> CRUD API -> JSON
  • Scripts -> database management -> seeding, migration

Project Environment Variables

HTTP_LISTEN_ADDRESS:=
JWT_SECRET=
MONGO_DB_NAME=
MONGO_DB_URL=
MONGO_DB_URL_TEST=

Installation

  1. Clone the repository:
git clone https://github.com/lucaliebenberg/hotel-reservation-backend.git
  1. Build the project:
go build -o hotel-reservation-backend/bin
  1. Run the project:
go run main.go 

Contributing

If you would like to contribute to the project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new feature').
  5. Push to the branch (git push origin feature-branch).
  6. Create a new Pull Request.

About

Hotel reservation RESTful JSON API with user registration and authentication. features: list hotels, book available hotels, list rooms, cancel bookings, seed scripting with admin auth on specific endpoints

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published