Skip to content

juroberttyb/go-rest-template

Repository files navigation

go-rest-template

This repo provides a simple golang rest template for developing microservices.
It implements a REST based tradebook service for demo purpose.
An order in tradebook consists of these information (buy or sell, quantity, market price or limit price).

Quickstart

  1. pre-requirement
$ create a key on gcp cloud kms for this app and update SYSTEM_KEY_ID feild in .env
  1. spin up local development environment
$ make compose-up
  1. start service for local development
$ make run
  1. (Optional) spin down local development environment
$ make compose-down

Commit Requirements

  1. Build Document
$ make doc
  1. Build Mocks
$ make mocks

API DOC

Structure

api -> service -> store -> implementations (database, encryption...)
 |        |         |         
 |        V         |
 +----> models <----+