How wiliammelo01/planner-backend works
Planner Backend is an Express API for user accounts, authentication, task management, and column-based organization. Users register or log in to receive a JWT, then use authenticated endpoints to manage their profile, tasks, and columns. Controllers perform Prisma operations against PostgreSQL. The README also describes a planned asynchronous notification flow: the API stores notification preferences and schedules, then AWS services dispatch and process pending alerts. That AWS path is documented as planned, not implemented in the sampled API sources.
Main entry points: main.js HTTP server · check-auth.js Auth middleware · schema.prisma Notification models · auth-controller.js Authentication
Components 15
API routing
- HTTP server
main.js
Identity and access
- Authentication
controllers/auth-controller.js - JWT service
services/jwt-service.js - Auth middleware
middlewares/check-auth.js
Planner domains
- User management
controllers/user-controller.js - Task management
controllers/task-controller.js - Column management
controllers/column-controller.js
Persistence and alerts
- Planner data model
prisma/schema.prisma - PostgreSQL
- Notification models
prisma/schema.prisma - Amazon EventBridge
- AWS Lambda
- Amazon SQS
- Alert consumer
Other components
- Planner user
Connections 23
- Planner user → HTTP server: sends requests
README.md - HTTP server → Authentication: routes auth
main.js - HTTP server → User management: routes users
main.js - HTTP server → Task management: routes tasks
main.js - HTTP server → Column management: routes columns
main.js - Authentication → JWT service: creates tokens
controllers/auth-controller.js - Auth middleware → JWT service: verifies tokens
middlewares/check-auth.js - User management → Auth middleware: uses for protected routes
controllers/user-controller.js - Task management → Auth middleware: uses for routes
controllers/task-controller.js - Column management → Auth middleware: uses for routes
controllers/column-controller.js - Authentication → PostgreSQL: reads and writes users
controllers/auth-controller.js - Task management → PostgreSQL: reads and writes tasks
controllers/task-controller.js - Column management → PostgreSQL: reads and writes columns
controllers/column-controller.js - User management → PostgreSQL: reads and writes users
controllers/user-controller.js - Planner data model → PostgreSQL: defines persisted data
README.md - Planner user → Notification models: sets preferences
README.md - HTTP server → Notification models: stores schedules
README.md - Notification models → PostgreSQL: persists schedules
README.md - Amazon EventBridge → AWS Lambda: triggers periodically
README.md - AWS Lambda → PostgreSQL: queries pending alerts
README.md - AWS Lambda → Amazon SQS: queues alerts
README.md - Amazon SQS → Alert consumer: dispatches messages
README.md - Alert consumer → Notification models: updates status
README.md