Skip to content

A sample project using Hexagonal (Ports & Adapters) architecture, Event Sourcing, CQRS and DDD tactical patterns

Notifications You must be signed in to change notification settings

bymyslf/payment-gateway

Repository files navigation

Payment Gateway

Simple Payment Gateway sample project using:

This project is only for demonstration purposes and should not be considered production-ready.

The solution includes the Payment Gateway as well an Acquiring Bank simulator for development and testing purposes.

Run using Docker Compose

You can run whole application using docker compose from root folder:

docker-compose up -d

It will create following services:

  • Acquiring Bank Simulator
  • Payment Gateway API

How to use

The Payment Gateway will allow you to interact with the API via Swagger UI. Check the Open API specification.

Type the following URL in your browser:

http://localhost:5270/swagger 

Run tests

If you want to run the automated tests you can do it using docker compose from the root folder:

docker-compose -f .\docker-compose-tests.yml up

This will run all the tests.

You can also target only some tests:

docker-compose -f .\docker-compose-tests.yml up [payment-gateway-unittests | payment-gateway-apitests]

Improvements

About

A sample project using Hexagonal (Ports & Adapters) architecture, Event Sourcing, CQRS and DDD tactical patterns

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published