/codebank

A full cycle project to simulate credit card transactions using Golang, Nest.js and Kafka.

Primary LanguageTypeScript

Code Bank

A simple digital bank to process credit card transactions.

codebank

Golang application to receive the transactions.

store-frontend

Next.js application to order a product.

store-api

Nest.js application to provide the products.

Development

codebank

Change the .env file to setup the environment.

Execute docker-compose up -d to run a container with the Golang environment.

Execute docker exec -it appbank bash to execute the commands inside the container with Golang environment.

Execute make gen to generate the gRPC files.

Simulate a message

Inside the appbank container:

Execute evans -r repl -p=50052

Execute call Payment

Fill in the fields and check the Center Control (localhost:9021) to see the message.

appbank

A container with the following:

  • the Golong environment to execute the application.
  • evans: a gPRC client

store-frontend

Execute docker-compose up -d to run a container with the pre-configured environment.

store-api

Execute docker-compose up -d to run a container with the pre-configured environment.

Kafka