- Go 1.12 (skip if you use docker)
- MySQL 5.7 (skip if you use docker)
- direnv
- Twilio (for SMS authentication)
- SendGrid (for sending email)
- Clone repo
git clone https://github.com/k-yomo/go_echo_api_boilerplate.git
cd go_echo_api_boilerplate
-
Create
.env
file in reference to .env.sample -
Install dependent modules
go mod install
- Run dev server
// Listening on localhost:1323 with hot reloading(localhost:5002)
realize start --server
- Clone repo
git clone https://github.com/k-yomo/go_echo_api_boilerplate.git
cd go_echo_api_boilerplate
-
Create
.env
file in reference to .env.sample -
Run containers
// Listening on localhost:1323 with hot reloading(localhost:5002)
docker-compose up -d
make test
make cover
- Run dev server
- Open
localhost:1323/swagger/index.html
- See cmd/db/migrate