Skip to content
herobeniyoutubePublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

Chat API

Требования:

  • Go 1.25+
  • PostgreSQL 16+ (или запуск через docker compose)
  • github.com/swaggo/swag - v1.16.6

Запуск docker-compose.yml

в командной строке при установленном докере - docker compose up -d

API http://...:25565/. Swaggerhttp://localhost:25565/swagger/index.html.

Локальный запуск

  1. Запуск постгре и создание бд - chat_api_db
  2. Нужно создать свой .env в корне - есть пример .env.example
  3. go run ./main.go

Goose миграции

goose -dir ./migrations postgres "host=127.0.0.1 port=5432 user=postgres dbname=chat_api_db password=postgres sslmode=disable" up

Тесты

go test ./...

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages