everest

module
v0.0.0-...-47484d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2020 License: MIT

README

Yishan Everest

drawing

Yishan Workspace API Server

It uses the following stack:

Source Layout

Follow https://github.com/golang-standards/project-layout standards

Architecture

We use Hexagonal Architecture, check /examples/hex for more information.

Config

Everest use config in ./configs folder, it use viper to read file name with "viper" in any acceptable file type. You can use ENV EVEREST_CONFIG_FILE_NAME to change the filename, but it has be in ./configs folder.

Get Start

DEV
  1. go mod download

  2. get air

curl -fLo ./bin/air \
    https://raw.githubusercontent.com/cosmtrek/air/master/bin/{linux, darwin, windows}/air
chmod +x ~/air
  1. update config file
# copy a local config file which is ignored in git
# so no one upload any sensitive data to pulbic
cp ./configs/viper.yaml ./configs/viper.local.yaml
# edit viper.local.yaml with your own credentials
vi ./configs/viper.local.yaml
  1. make dev
PROD

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL