How cihanelias/serverless-todo-app works
A serverless todo SPA: users manage tasks in the Angular page, whose store calls HTTP API functions; backend services validate operations and repositories persist them. The README establishes the frontend/backend split and Vercel hosting. Source excerpts show most frontend-to-store and backend-to-database calls; the HTTP boundary between browser and functions is documented by the API URL and README architecture, while no endpoint excerpt was supplied. UI dialog and item behavior is represented by their components, but their template-level interactions were not sampled.
Main entry points: todo-page.ts Todo page · todos HTTP routes · app.ts SPA shell · todoService.ts Todo service
Components 16
Angular frontend
- SPA shell
src/app/app.ts - Todo page
src/app/components/todo-page/todo-page.ts - Todo list
src/app/components/todo-list/todo-list.ts - Todo item
src/app/components/todo-item/todo-item.ts - Edit dialog
src/app/components/todo-dialog/todo-dialog.ts - Todo state
src/app/services/todo-store.service.ts - HTTP client
src/app/services/todo-api.service.ts - Frontend Todo model
src/app/models/todo.model.ts
Serverless API
- HTTP routes
api/todos - Health function
api/health.ts - Todo service
api/lib/services/todoService.ts - API Todo model
api/lib/models/todo.ts
Persistence
- Todo repository
api/lib/repositories/todoRepository.ts - Postgres database
Other components
- Todo user
- Vercel platform
Connections 14
- Todo user → SPA shell: uses
README.md - SPA shell → Todo page: renders
src/app/app.ts - Todo page → Todo state: loads and mutates
src/app/components/todo-page/todo-page.ts - Todo page → Todo list: renders
src/app/components/todo-page/todo-page.ts - Todo page → Edit dialog: renders
src/app/components/todo-page/todo-page.ts - Todo list → Todo item: uses row template
src/app/components/todo-list/todo-list.ts - Todo state → HTTP client: calls
src/app/services/todo-store.service.ts - HTTP client → HTTP routes: sends HTTP requests
- HTTP routes → Todo service: dispatches
api/todos/index.ts - HTTP routes → Todo service: dispatches
api/todos/[id].ts - Todo service → Todo repository: calls
api/lib/services/todoService.ts - Todo repository → Postgres database: queries
api/lib/repositories/todoRepository.ts - Vercel platform → SPA shell: hosts
README.md - Vercel platform → HTTP routes: hosts functions
README.md