Accounting service is a microservice that is in charge of all financial information – company account balances, transactions, statements, Money push (debit) and pull (credit) is handed over to the payment integrators.
- git clone this repository & cd to the project directory
- Golang v1.17 or greater
- Git
- Kafka
- VSCode, Goland or even any other code editor of your preferred choice.
- PostgresDB
- Redis
-
Install Go if you don't have it installed.
-
Install git , (optional) if you dont have it installed.
-
Install Kafka if you don't have it
-
Install postgresDB
- Launch VSCode editor
- Generate a launch json file by clicking on the
Run
button on the right side of your VSCode IDE - You can set the
PORT
you want to use in the.env
file, if you don't set it the api will run on3000
by default. - Congratulations! You have successfully launched Accounting service!
For this, you need to have Docker installed in your system.
- Run
docker build -t <image-name> .
to build the docker image - Run
docker run -p 3000:3000 <image-name>
to run the image. This will expose port3000
For this, you need to have Docker and Docker compose installed in your system.
- Run
docker-compose up
to build and run the docker images
Just call this endpoint: http://localhost:3000/ping
using a GET method It will show a pong
response.
Find the API docs /api-docs
to get all API available
Run go test
- Golang v1.17
- Segmentio Kafka libray
- Gin Framework
- Redis
- GORM ORM
- Alain MUCYO (https://github.com/alainmucyo)
This software is published under the MIT licence.