/backend

API to Simple Retro website

Primary LanguageGoMIT LicenseMIT

๐Ÿ‘จโ€๐Ÿ’ป Simple Retro

๐Ÿ”ฅ | Running the project

To run Simple Retro API, you need to have Golang in your machine. We recommend at least version 1.21.

  1. ๐Ÿงน Clone the repository
git clone git@github.com:simple-retro/backend.git
  1. ๐Ÿ’ป Installing the dependencies
go get .
  1. ๐Ÿƒโ€โ™‚๏ธ Running
go run main.go

๐Ÿ“– Swagger

Install swaggo if not installed in your system:

go install github.com/swaggo/swag/cmd/swag@latest

To update Swagger documentation run:

swag init -g internal/server/server.go

To format Swagger comments:

swag fmt

The documentation could be accessed in /swagger/index.html

๐Ÿ“ฆ Buiding for production

To deploy the Simple Retro API, use Docker image.

docker build -t backend:<version> .
docker compose up -d

๐Ÿ”จ | Made With

โš–๏ธ | License

Distributed under the MIT License. See LICENSE for more information.