Skip to content

locnguyenvu/mangden

Repository files navigation

Learn golang project

Create new project with this template

$ curl https://raw.githubusercontent.com/locnguyenvu/mangden/main/setup.sh | sh

Setup local environment

Prerequisites

  1. Google Protobuf

  2. Docker

  3. MySQL server

Preparation

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

Run development server

$ ./mdn http_api [options]

    -p <port>       Custom http port on runtime

Documents

Development use cosmtrek/air for hot-reload, configuration file is http-api.air.toml

References

About

Learn golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors