Skip to content

Latest commit

 

History

History
66 lines (39 loc) · 3.67 KB

architecture.md

File metadata and controls

66 lines (39 loc) · 3.67 KB

Architecture overview

This repository consists of:

Layered application

Application is

  • powered by TypeScript, Vue.js and Electron 💪,
  • and driven by Domain-driven design, Event-driven architecture, Data-driven programming concepts.

Application uses highly decoupled models & services in different DDD layers:

Application layer depends on and consumes domain layer. Presentation layer consumes and depends on application layer along with domain layer. Application and presentation layers can communicate through domain model.

DDD + vue.js

Application state

State handling uses an event-driven subscription model to signal state changes and special functions to register changes. It does not depend on third party packages.

Each layer treat application layer differently.

State

Presentation layer:

  • Each component holds their own state about presentation-related data.
  • Components register shared state changes into application state using functions.
  • Components listen to shared state changes using event subscriptions.
  • 📖 Read more: presentation.md | Application state.

Application layer:

  • Stores the application-specific state.
  • The state it exposed for read with getter functions and set using setter functions, setter functions also fire application events that allows other parts of application and the view in presentation layer to react.
  • So state is mutable, and fires related events when mutated.
  • 📖 Read more: application.md | Application state.

It's comparable with flux (redux) or flux-like (vuex) patterns. Flux component "view" is presentation layer in Vue. Flux functions "dispatcher", "store" and "action creation" functions lie in the application layer. A difference is that application state in privacy.sexy is mutable and lies in single flux "store" that holds app state and logic. The "actions" mutate the state directly which in turns act as dispatcher to notify its own event subscriptions (callbacks).

AWS infrastructure

The web-site runs on serverless AWS infrastructure. Infrastructure is open-source and deployed as code. aws-static-site-with-cd project includes the source code.

AWS solution

The design priorities highest security then minimizing cloud infrastructure costs.

This project includes GitHub Actions to automatically provision the infrastructure with zero-touch and without any "hidden" steps, ensuring everything is open-source and transparent. Git repositories includes all necessary instructions and automation with GitOps practices.

GitOps

CI/CD pipelines automate operational tasks based on different Git events. bump-everywhere enables this automation.

📖 Read more in ci-cd.md.

CI/CD using GitHub Actions