项目作者: emurmotol

项目描述 :
Mono Repo Project
高级语言: Go
项目地址: git://github.com/emurmotol/project.git
创建时间: 2019-02-27T14:23:44Z
项目社区:https://github.com/emurmotol/project

开源协议:

下载


Project

This is the Mono Repo Project

Getting Started

Dependencies

Requirements

Installable via Makefile

Configuration

  • GO111MODULE=on

Services

  • API - API Microservice (GraphQL)
  • Auth - Authentication Microservice
  • User - User Management Microservice

Usage

A Makefile is included for convenience

Install the dependencies

  1. make install

Run migrations

  1. make migrate-up

Build the binaries

  1. make build

Run the service

  1. ./service_name/service_name

Build the docker images

  1. make docker-images

Start a service

  1. make service_name
  2. # or start all services
  3. make docker-up

Run tests

  1. make test

Generated with

  1. # create a new service
  2. kit new service service_name
  3. # add endpoints to the service
  4. kit generate service service_name -w -t grpc

Setup go modules

  1. cd service_name
  2. go mod init
  3. go mod tidy

Create migration

  1. migrate create -ext sql -dir=./server/postgres/migrations create_sample_table

Notes

  1. $(ifconfig enp2s0 | sed -En -e 's/.*inet ([0-9.]+).*/\1/p')

Donations

If you like it you can send a small donation to any of the following addresses:

BTC: 3P1eTCYEcFGoN4bCfRAUbedfqK17DCMM5R

ETH: 0x4939e019c56a8885bcd5fac11eba1cb1b147dc6e

XRP: rU2mEJSLqBRkYLVTv55rFTgQajkLTnT6mA DT: 110892

BAT: 0x0a317eA88131eFD0FC48E0ac9945996Eb690dbc0