Skip to content

alvaroseparovich/simplePaymentServiceJs

Repository files navigation

Simple Payment System

Showing Alvaro best practices.
This is my code following PicPay chalenge guidelines.

Project Structure Fundamentals

Project Structure Fundamentals

Here I follow the hexagonal-architecture.
To follow it and keep our domain secure from external behaviour:

About Domain

  • Entities contains the entity data.
  • Entities DOES NOTHING.
  • Services modifies Entities.
  • Services HAVE NO data.

About outsource

  • All business logic here should be tested. (like UNIQUE KEYS on DB)

Code Design decision for code isolation and separation of concerns

Code Structure Decision

Firsts entities and services pre-designed

first-entities

FUll Documentation

Here is the full documentation, with more detailed desired behaviour.

Start up

run

make infra/up/complete