EpicStep / vk-hackathon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VK Hackathon (Back End)

Run (Locally)

Create .env file and add following values:

PORT=8181
DATABASE_URL=root:mypass@tcp(mysql:3306)/test

After you can run app in docker:

docker compose up -d

Note that the container may restart several times, as it is waiting for MySQL

You need to insert migrations/000001_initial.up.sql

Also, you can run tests:

go run cmd/test/main.go -addr=http://host:port (optional)

About


Languages

Language:Go 96.8%Language:Dockerfile 1.9%Language:PLpgSQL 1.2%