https://github.com/epicstep/vk-hackathon
https://github.com/epicstep/vk-hackathon
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/epicstep/vk-hackathon
- Owner: EpicStep
- Created: 2021-11-04T16:05:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-04T23:17:53.000Z (over 4 years ago)
- Last Synced: 2025-03-17T11:51:08.009Z (over 1 year ago)
- Language: Go
- Size: 325 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
```