Categorygithub.com/Dragonqos/go_boilerplate
repository
0.0.0-20210721081055-7401205764e8
Repository: https://github.com/dragonqos/go_boilerplate.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

GO-Boilerplate

Using with Docker

Start production enviroment

$ not ready for production

Start development enviroment

$ docker network create shared_go_bp
$ docker-compose up

Attach to bash

$ docker-compose exec go_go sh
$ de go_go

Run tests

Enter go_go container

$ de go_go

Local directory mode is when go test is called inside a directory, without any package arguments supplied. Running go test in .../yourProject/model will compile and run all the tests in that directory Package list mode is when go test is called with package/path arguments, such as go test users or go test ./testFiles/ .

$ cd /api/core/cipher
$ go test
// or run all tests from root
$ cd /api
$ go test ./...

development: http://go-local.com:8200/api/ production: not ready

Example

After running docker-compose open:

development: http://go-local.com:8200/api/ production: not ready

Without docker

$ make serve

You may need to execute go mod download in src folder first