How johnnyalex77/todo-devops works
This is a minimal task-management API with a PostgreSQL-backed CRUD workflow and a documented DevOps deployment path. The sampled code shows server startup, route registration, database initialization, and task queries; deployment details are represented only where the README documents them.
Main entry points: ci-cd.yml GitHub Actions · index.js Express server · db.js PostgreSQL · docker-compose.yml Docker Compose
Components 10
Task API
- Express server
app/index.js - Task and health routes
app/routes.js
Persistence
- PostgreSQL
app/db.js
DevOps delivery
- Docker Compose
docker/docker-compose.yml - Container image
docker/Dockerfile - GitHub Actions
.github/workflows/ci-cd.yml - Docker Hub
- Terraform infrastructure
infra/main.tf - AWS EC2
Other components
- API user
Connections 10
- API user → Express server: sends requests
README.md - Express server → Task and health routes: mounts routes
app/index.js - Express server → PostgreSQL: initializes schema
app/index.js - Task and health routes → PostgreSQL: queries tasks
app/routes.js - Docker Compose → Container image: builds image
README.md - Docker Compose → PostgreSQL: runs PostgreSQL
README.md - GitHub Actions → Container image: builds image
README.md - GitHub Actions → Docker Hub: publishes image
README.md - GitHub Actions → AWS EC2: deploys via SSH
README.md - Terraform infrastructure → AWS EC2: provisions
README.md