book-end

command module
v0.0.0-...-7e7321d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 8 Imported by: 0

README

book-end - Hotel Reservation API

Project outline

  • users -> book a hotel room
  • admins -> check the hotel reservations
  • Authentication and authorization -> JWT tokens
  • Hotels -> CRUD API -> JSON
  • Rooms -> CRUD API -> JSON
  • Scripts -> database management -> seeding, migration

Example project environment variables

Adjust them to your local config
HTTPS_LISTEN_ADDRESS=:3000
JWT_SECRET=
MONGO_DB_URL=mongodb://localhost:27017
MONGO_DB_NAME=book-end
MONGO_TEST_DB_NAME=book-end-test

Resources

Mongodb driver

Documentation

https://mongodb.com/docs/drivers/go/current/quick-start

Installing mongodb client

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

Documentation

https://gofiber.io

Installing gofiber

go get github.com/gofiber/fiber/v2

Docker

Installing mongodb as a Docker container
docker run --name mongodb -d mongo:latest -p 27017:27017

GoDotEnv Load

go get github.com/joho/godotenv

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL