# crisweb1994/60-days-nodejs architecture

> Architecture diagram of the GitHub repository crisweb1994/60-days-nodejs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/crisweb1994/60-days-nodejs
- Repository: https://github.com/crisweb1994/60-days-nodejs

## Overview

This repository is a hands-on Node.js learning curriculum, not one deployed application. Its primary learner workflow progresses from Node.js fundamentals and native APIs through a NestJS/PostgreSQL blog backend, then authentication and infrastructure, and finally a Next.js SaaS task-management project. The graph preserves those major stages and the SaaS product capabilities highlighted by the README. Internal links for unsampled modules are omitted or marked unverified; the source excerpts establish specific controller, service, storage, and authentication interactions only in the blog implementation.

Main entry points: [`solutions/saas/src/components/workspace-app.tsx`](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/components/workspace-app.tsx) (Task workspace UI), [`solutions/saas/src/server/routers/tasks.ts`](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/routers/tasks.ts) (Task and project API), [`solutions/saas/src/server/db.ts`](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/db.ts) (PostgreSQL and Redis), [`solutions/blog/blog-api/src/posts/posts.controller.ts`](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/blog/blog-api/src/posts/posts.controller.ts) (Post endpoints)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_curriculum["Learning curriculum"]
  node_fundamentals["Node fundamentals"]
  node_native_api["Native REST API"]
end

subgraph group_blog["Blog backend"]
  node_nest_blog["NestJS blog API"]
  node_auth_service["Authentication<br/>[auth.service.ts]"]
  node_posts_controller["Post endpoints"]
  node_posts_service["Post operations<br/>[posts.service.ts]"]
  node_upload_interceptor["Cover upload"]
  node_local_storage["Local storage"]
  node_s3_storage["S3 storage"]
end

subgraph group_saas["SaaS platform"]
  node_saas_ui["Task workspace UI<br/>[workspace-app.tsx]"]
  node_task_api["Task and project API<br/>[tasks.ts]"]
  node_workspace_api["Workspace management<br/>[workspaces.ts]"]
  node_realtime["Realtime events<br/>[event-bus.ts]"]
end

subgraph group_operations["Platform services"]
  node_notifications["Notifications"]
  node_mail_queue["Mail queue<br/>[mail-queue.ts]"]
  node_analytics["Analytics<br/>[analytics.ts]"]
  node_database[("PostgreSQL and Redis<br/>[db.ts]")]
end

node_learner(("Learner"))

node_learner -->|"studies first"| node_fundamentals
node_fundamentals -->|"builds toward"| node_native_api
node_native_api -->|"advances to"| node_nest_blog
node_nest_blog -->|"extends into"| node_auth_service
node_auth_service -->|"leads to"| node_saas_ui
node_posts_controller -->|"calls"| node_posts_service
node_posts_controller -->|"uses"| node_upload_interceptor
node_local_storage -.->|"alternative backend"| node_s3_storage
node_saas_ui -.->|"requests"| node_task_api
node_saas_ui -.->|"manages"| node_workspace_api
node_task_api -.->|"reads and writes"| node_database
node_workspace_api -.->|"reads and writes"| node_database
node_task_api -.->|"publishes changes"| node_realtime
node_notifications -.->|"enqueues mail"| node_mail_queue
node_analytics -.->|"queries metrics"| node_database

click node_fundamentals "https://github.com/crisweb1994/60-days-nodejs/tree/main/days/day-01/solutions"
click node_native_api "https://github.com/crisweb1994/60-days-nodejs/tree/main/days/day-08/solutions"
click node_nest_blog "https://github.com/crisweb1994/60-days-nodejs/blob/main/days/day-21/solutions/blog-api/src/posts/posts.controller.ts"
click node_auth_service "https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/blog/blog-api/src/auth/auth.service.ts"
click node_posts_controller "https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/blog/blog-api/src/posts/posts.controller.ts"
click node_posts_service "https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/blog/blog-api/src/posts/posts.service.ts"
click node_upload_interceptor "https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/blog/blog-api/src/storage/cover-upload.interceptor.ts"
click node_local_storage "https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/blog/blog-api/src/storage/local-storage.service.ts"
click node_s3_storage "https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/blog/blog-api/src/storage/s3-storage.service.ts"
click node_saas_ui "https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/components/workspace-app.tsx"
click node_task_api "https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/routers/tasks.ts"
click node_workspace_api "https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/routers/workspaces.ts"
click node_realtime "https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/realtime/event-bus.ts"
click node_notifications "https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/notifications/notification-service.ts"
click node_mail_queue "https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/notifications/mail-queue.ts"
click node_analytics "https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/routers/analytics.ts"
click node_database "https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/db.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_fundamentals,node_native_api toneBlue
class node_nest_blog,node_auth_service,node_posts_controller,node_posts_service,node_upload_interceptor,node_local_storage,node_s3_storage toneAmber
class node_saas_ui,node_task_api,node_workspace_api,node_realtime toneMint
class node_notifications,node_mail_queue,node_analytics,node_database toneRose
class node_learner toneIndigo
```

## Components

### Learning curriculum

- [Node fundamentals](https://github.com/crisweb1994/60-days-nodejs/tree/main/days/day-01/solutions): `days/day-01/solutions`
- [Native REST API](https://github.com/crisweb1994/60-days-nodejs/tree/main/days/day-08/solutions): `days/day-08/solutions`

### Blog backend

- [NestJS blog API](https://github.com/crisweb1994/60-days-nodejs/blob/main/days/day-21/solutions/blog-api/src/posts/posts.controller.ts): `days/day-21/solutions/blog-api/src/posts/posts.controller.ts`
- [Authentication](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/blog/blog-api/src/auth/auth.service.ts): `solutions/blog/blog-api/src/auth/auth.service.ts`
- [Post endpoints](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/blog/blog-api/src/posts/posts.controller.ts): `solutions/blog/blog-api/src/posts/posts.controller.ts`
- [Post operations](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/blog/blog-api/src/posts/posts.service.ts): `solutions/blog/blog-api/src/posts/posts.service.ts`
- [Cover upload](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/blog/blog-api/src/storage/cover-upload.interceptor.ts): `solutions/blog/blog-api/src/storage/cover-upload.interceptor.ts`
- [Local storage](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/blog/blog-api/src/storage/local-storage.service.ts): `solutions/blog/blog-api/src/storage/local-storage.service.ts`
- [S3 storage](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/blog/blog-api/src/storage/s3-storage.service.ts): `solutions/blog/blog-api/src/storage/s3-storage.service.ts`

### SaaS platform

- [Task workspace UI](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/components/workspace-app.tsx): `solutions/saas/src/components/workspace-app.tsx`
- [Task and project API](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/routers/tasks.ts): `solutions/saas/src/server/routers/tasks.ts`
- [Workspace management](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/routers/workspaces.ts): `solutions/saas/src/server/routers/workspaces.ts`
- [Realtime events](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/realtime/event-bus.ts): `solutions/saas/src/server/realtime/event-bus.ts`

### Platform services

- [Notifications](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/notifications/notification-service.ts): `solutions/saas/src/server/notifications/notification-service.ts`
- [Mail queue](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/notifications/mail-queue.ts): `solutions/saas/src/server/notifications/mail-queue.ts`
- [Analytics](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/routers/analytics.ts): `solutions/saas/src/server/routers/analytics.ts`
- [PostgreSQL and Redis](https://github.com/crisweb1994/60-days-nodejs/blob/main/solutions/saas/src/server/db.ts): `solutions/saas/src/server/db.ts`

### Other components

- **Learner**

## Connections

- Learner → Node fundamentals: studies first (evidence: `README.md`)
- Node fundamentals → Native REST API: builds toward (evidence: `README.md`)
- Native REST API → NestJS blog API: advances to (evidence: `README.md`)
- NestJS blog API → Authentication: extends into (evidence: `README.md`)
- Authentication → Task workspace UI: leads to (evidence: `README.md`)
- Post endpoints → Post operations: calls (evidence: `solutions/blog/blog-api/src/posts/posts.controller.ts`)
- Post endpoints → Cover upload: uses (evidence: `solutions/blog/blog-api/src/posts/posts.controller.ts`)
- Local storage → S3 storage: alternative backend (evidence: `solutions/blog/blog-api/src/storage/s3-storage.service.ts`)
- Task workspace UI → Task and project API: requests
- Task workspace UI → Workspace management: manages
- Task and project API → PostgreSQL and Redis: reads and writes
- Workspace management → PostgreSQL and Redis: reads and writes
- Task and project API → Realtime events: publishes changes
- Notifications → Mail queue: enqueues mail
- Analytics → PostgreSQL and Redis: queries metrics
