No description
Find a file
2025-12-16 17:55:50 +03:00
cmd test 2025-12-16 17:55:50 +03:00
configs test 2025-12-16 17:55:50 +03:00
docs test 2025-12-16 17:55:50 +03:00
internal test 2025-12-16 17:55:50 +03:00
migrations test 2025-12-16 17:55:50 +03:00
pkg test 2025-12-16 17:55:50 +03:00
.dockerignore test 2025-12-16 17:55:50 +03:00
.gitignore test 2025-12-16 17:55:50 +03:00
docker-compose.yaml test 2025-12-16 17:55:50 +03:00
Dockerfile test 2025-12-16 17:55:50 +03:00
entrypoint.sh test 2025-12-16 17:55:50 +03:00
go.mod test 2025-12-16 17:55:50 +03:00
go.sum test 2025-12-16 17:55:50 +03:00
habits.go test 2025-12-16 17:55:50 +03:00
Makefile test 2025-12-16 17:55:50 +03:00
mentor.go test 2025-12-16 17:55:50 +03:00
README.md test 2025-12-16 17:55:50 +03:00
reports.go test 2025-12-16 17:55:50 +03:00
server.go test 2025-12-16 17:55:50 +03:00
teams.go test 2025-12-16 17:55:50 +03:00
tracks.go test 2025-12-16 17:55:50 +03:00
user.go test 2025-12-16 17:55:50 +03:00

FitAltTrack

RESTful API with Golang


Фреймворки и пакеты

Gin - framework: github.com/gin-gonic/gin

  • goose/v3 - migrations: github.com/pressly/goose/v3
  • sqlx - DB: github.com/jmoiron/sqlx
  • pq - driver postgresql: github.com/lib/pq
  • godotenv - responsible for reading .env file: github.com/joho/godotenv
  • jwt/v5 - jwt tokens: github.com/golang-jwt/jwt/v5
  • viper - parsing config: github.com/spf13/viper
  • logrus - logs: github.com/sirupsen/logrus

Запуск

Поднять бэкенд (поднять контейнеры)

docker compose up -d

Остановить контейнеры

docker compose stop

Удалить контейнеры

docker compose down

Swagger

Swagger-документация доступна по адресу:

http://localhost:8080/swagger/index.html#/