An open API service indexing awesome lists of open source software.

https://github.com/epicstep/vk-hackathon


https://github.com/epicstep/vk-hackathon

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# VK Hackathon (Back End)
## Run (Locally)
Create .env file and add following values:
```dotenv
PORT=8181
DATABASE_URL=root:mypass@tcp(mysql:3306)/test
```

After you can run app in docker:
```bash
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:
```bash
go run cmd/test/main.go -addr=http://host:port (optional)
```