Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/realmrv/golang-training
https://github.com/realmrv/golang-training
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/realmrv/golang-training
- Owner: realmrv
- Created: 2021-06-22T13:28:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-06-22T13:28:54.000Z (over 3 years ago)
- Last Synced: 2024-06-20T21:06:31.954Z (7 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Golang training project
## Requirements
- db: `MySQL/MariaDB`
- golang version: `16`
- migrate tool: [golang-migrate/migrate](https://github.com/golang-migrate/migrate)
- optional to start db server quickly: [Lando](https://github.com/lando/lando)## Get started
The commands given in the example must be executed from module root directory
1. Setup `.env` from `.env.example`
2. Run migrations. Example:
```sh
migrate -database 'mysql://mariadb:mariadb@tcp(127.0.0.1:3306)/database' -path db/migrations up
```
3. Install all project dependencies: `go install`
3. Compile and start: `go run main.go`
4. Enjoy. Default address: `http://localhost:3000/`