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)