Skip to content

Coding guidelines

Guy Luz edited this page Aug 2, 2021 · 4 revisions

Coding syntax

We are using lint to do all the syntax checking on the code, it will show wrong syntax as warnings. All you need to do is to not leave behind any warnings on your code.

Architecture

This is the structure of the code

The code is based on DDD (Domain-Driven Design) principles, you can learn it from here.

Architecture diagram:

Summery of the Architecture

Presentation: Will show the user interface. This layer dose not exist in this project as it runs in the background.

Application: From this layer we execute the abstract class in the next layer (domain) with getit and injection, this way we can route the code automatically to run our chosen environment implementation of the abstract class.

Domain: Only place that contains the business logic, will not be dependent on the other layers.

Infrastructure: Data that is stored and API are placed here, only place in the code that will have try catch exceptions!.

Clone this wiki locally