How balisng/blicktechapi_151069 works
This repository implements a browser-based todo app backed by an Express API and Prisma persistence. The user views and filters todos, adds items, toggles completion, and deletes items: the React app coordinates those actions through its API client, which calls the server routes that validate requests and read or write todo records. The graph also includes the UI’s form/list components and the server’s shared error handling. Source excerpts show the main calls and registrations; database details beyond the Prisma schema are not sampled.
Main entry points: App.tsx Todo app · todos.ts Todo routes · api.ts API client · index.ts API bootstrap
Components 15
Todo web client
- App mount
client/src/main.tsx - Todo app
client/src/App.tsx - API client
client/src/api.ts - Filter bar
client/src/components/FilterBar.tsx - Todo form
client/src/components/TodoForm.tsx - Todo list
client/src/components/TodoList.tsx - Todo item
client/src/components/TodoItem.tsx - Todo types
client/src/types.ts
Todo API
- API bootstrap
server/src/index.ts - Todo routes
server/src/routes/todos.ts - Request schemas
server/src/schemas.ts - Error handling
server/src/errors.ts
Todo persistence
- Prisma client
server/src/db.ts - Todo database
server/prisma/schema.prisma
Other components
- User
Connections 19
- User → App mount: uses
client/src/main.tsx - App mount → Todo app: renders
client/src/main.tsx - Todo app → API client: requests todos
client/src/App.tsx - API client → API bootstrap: calls API
client/src/api.ts - API bootstrap → Todo routes: mounts routes
server/src/index.ts - Todo app → Todo form: renders
client/src/App.tsx - Todo app → Filter bar: renders
client/src/App.tsx - Todo app → Todo list: renders
client/src/App.tsx - Todo form → Todo app: invokes add callback
client/src/components/TodoForm.tsx - Filter bar → Todo app: updates filter
client/src/components/FilterBar.tsx - Todo list → Todo item: renders
client/src/components/TodoList.tsx - Todo item → Todo app: invokes item callbacks
client/src/components/TodoItem.tsx - Todo routes → Request schemas: validates with
server/src/routes/todos.ts - Todo routes → Prisma client: reads and writes
server/src/routes/todos.ts - Prisma client → Todo database: persists records
- API bootstrap → Error handling: registers middleware
server/src/index.ts - Todo routes → Error handling: throws HTTP errors
server/src/routes/todos.ts - Todo app → Todo types: uses types
client/src/App.tsx - API client → Todo types: uses types
client/src/api.ts