Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 1.27 KB

README.md

File metadata and controls

19 lines (17 loc) · 1.27 KB

RESTful Web Service with GO, Gorilla Mux, GORM, Sarama, PostgreSQL, and Docker

Steps to Run Program

1. Since the project used multi Kafka's brokers, you must create three Kafka brokers with ports 9092, 9093, and 9094 respectively

2. Create Kafka's topic named cash_deposit

3. Run those three Kafka's brokers

4. If you'd like to run the project inside Docker, you could build then run the image using docker-compose as mentioned here

4.1. If you don't use docker to run the app, just simply use command: go run main.go in the root directory of the go-backend app

5. Create bank user by invoking RESTful web service with this payload for example

6. Invoke deposit service (If the customer doesn't exist, the service will register the new customer) with this payload for example

7. Get transaction history of customers or related customer.

Prerequisites

1. Golang

2. GORM

3. Gorilla Mux

4. Sarama

5. Apache Kafka

6. Docker