Payment Service Provider (PSP)
Challenge reference can be found here.
This project was build considering Clean Architecture as a reference design tecnique. Hence folder structure and file separation, that tries to separate application logic from business logic, and group files according to their domain. This first version has a shared database between entities all entities related to transactions, but, as the application grow, the idea is move payables and clients to individual APIs. This approach ensures that, as the application grows, scalabity becames less problematic.
Detailed design of the current architecture can be found here.
- Setup
.env
:
$ cp .env.example .env
- Set up the containers:
$ docker-compose up -d paymentservice
- Configure Migrations and Seeders:
$ docker exec -it <your application container> bash
$ ./dbconfig.sh
# exit
All set :)
After your container is up, run:
$ docker exec -it psp_paymentservice_1 npm run test