$ curl https://raw.githubusercontent.com/locnguyenvu/mangden/main/setup.sh | sh
-
Google Protobuf
- Binary: https://github.com/protocolbuffers/protobuf
- Golang add-ons: https://github.com/protocolbuffers/protobuf-go
-
Docker
-
MySQL server
Create .env file like example below
ADDR=0.0.0.0:8081
LOG_LEVEL=debug
LOG_FORMAT=text
DB_HOST=host.docker.local
DB_PORT=3306
DB_USER=root
DB_PASSWORD=root
DB_NAME=mangden
Instanll dependencies:
$ go mod vendor
$ go mod tidy
$ ./mdn http_api [options]
-p <port> Custom http port on runtime
Development use cosmtrek/air for hot-reload, configuration file is http-api.air.toml