项目作者: cyruzin

项目描述 :
Clean architecture example in Golang.
高级语言: Go
项目地址: git://github.com/cyruzin/hexagony.git
创建时间: 2019-05-09T22:25:31Z
项目社区:https://github.com/cyruzin/hexagony

开源协议:MIT License

下载




build Coverage Status Go Report Card GitHub license

Welcome to Hexagony Records! Hexagony name was taken from one of the Hate’s songs. Hate is a death metal band from Poland.

Running

First rename the .env_example file to .env and fill the variables if you want.

Next, make sure you have Docker and Docker Compose installed and then run the following command:

  1. $ docker-compose up --build

Or in Detached Mode:

  1. $ docker-compose up -d --build

Then, check the app up and running: http://localhost:8000.

Documentation

Access: http://localhost:8000/docs/index.html

Generate doc:

  1. $ swag init -g ./cmd/server/main.go

Schema

Download the schema inside docs folder and import in your Insomnia application or another request tool.
You need to specify Authorization header along with the Bearer token.

Generate Token

Use the following credentials:

User: john@doe.com

Pass: 12345678

Front-End Application

Check the Hexagony front-end: https://github.com/williamscalado/hexagony-front-react