Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add mermaid architecture diagram. closes #98 #126

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,46 @@ Answer all the questions, and you'll have your new project!
Inside `[project_destination_directory]/[project_slug]/README.md` you will have more
documentation explaining how to use and configure your newly created project.

## Architecture

Here is what a cookiecutter deployment looks like in practice:

```mermaid
flowchart LR
PR["PR Merge"] --> CIDCD["CI/CD Pipeline"]
CIDCD -->|Build & Push Images| AWSECR["AWS ECR Repo"]
CIDCD -->|Update Image Tags| Kustomize
CIDCD -->|Build & Push Static Content| S3
Kustomize --> ArgoCD
Cloudfront
S3
subgraph ControlPlaneCluster["Control Plane Cluster"]
Loki["Grafana Loki"]
Prometheus
ArgoCD
end
subgraph K8sCluster["Kubernetes Cluster"]
Django
NextJS
CloudNativePG
Redis
Celery
Mailhog
end
ArgoCD -->|Deploy| K8sCluster
Sentry
Django -->|Sends Error Logs| Sentry
NextJS -->|Sends Error Logs| Sentry
K8sCluster -->|Sends Logs| Loki
K8sCluster -->|Sends Metrics| Prometheus
Cloudfront -->|Requests for API and Frontend Views| K8sCluster
Cloudfront -->|Requests for Static Content and Media| S3

style K8sCluster fill:#FFC107, stroke:#FFFFFF, stroke-width:1px
style ControlPlaneCluster fill:#ff6361, stroke:#FFFFFF, stroke-width:1px

```

## Terraform and AWS

In order to deploy your project using terraform and AWS you can follow the instructions in `terraform/README.md`.
Expand Down