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).
- pre-requirement
$ create a key on gcp cloud kms for this app and update SYSTEM_KEY_ID feild in .env
- spin up local development environment
$ make compose-up
- start service for local development
$ make run
- (Optional) spin down local development environment
$ make compose-down
- Build Document
$ make doc
- Build Mocks
$ make mocks
- Live Doc: http://localhost:8000/docs/index.html
- postman file is included for trying the api out
api -> service -> store -> implementations (database, encryption...)
| | |
| V |
+----> models <----+