This is a simple backend for coins app. It is a simple REST API that allows you to create, update accounts and transfer coin between them.
You need to have installed Docker and Docker Compose.
Then you can run the app with the following command:
make build && make runThe app is available on port 8080. You can use the following endpoints:
GET /accounts- returns all accountsGET /accounts/{id}- returns account with given idPOST /accounts- creates new accountPUT /accounts/{id}- updates account with given id
POST /transfers- creates new transferGET /transfers- returns all transfersGET /transfers/{id}- returns transfer with given id
GET /coin/price- returns current prices of coin (due to Binance API)
You can find Swagger documentation on swagger/index.html endpoint.
The app uses Kafka for simple event sourcing. You can find the topics in docker-compose.yml file.
