How kanaami04/recipe_management works
This repository implements a recipe-management web application: users can manage recipes and labels, accounts, sharing groups, and shopping lists. The frontend includes manual and URL-based recipe entry; the backend provides authentication and API capabilities, with PostgreSQL and S3-compatible avatar storage. The sampled source supports the recipe-form component relationships, authentication client behavior, and infrastructure wiring, but does not expose most handler-to-service calls. Those API relationships are therefore not inferred.
Main entry points: RecipeForm.tsx Recipe form · recipe-stack.ts AWS application stack · main.go HTTP server entry · authClient.ts Authentication client
Components 31
Web application
- Application routes
frontend/src/routes.ts - Recipe form
frontend/src/features/recipes/components/RecipeForm.tsx - Recipe input fields
frontend/src/features/recipes/components/RecipeInputForm.tsx - Recipe steps input
frontend/src/features/recipes/components/RecipeStepsInput.tsx - Recipe source input
frontend/src/features/recipes/components/RecipeSourceInput.tsx - Recipe selectors
frontend/src/features/recipes/components/SelectInput.tsx - Recipe labels input
frontend/src/features/recipes/components/MultiSelectInput.tsx - Authentication client
frontend/src/shared/auth/authClient.ts - Access token store
frontend/src/shared/auth/tokenStore.ts - CSRF header
frontend/src/shared/auth/csrf.ts - Generated API client setup
frontend/src/shared/api/client.ts - Query cache
frontend/src/shared/lib/queryClient.ts
API runtime
- HTTP server entry
api/main.go - Application wiring
api/internal/app/app.go - Authentication endpoints
api/internal/handler/auth_handler.go - Recipe endpoints
api/internal/handler/recipe_handler.go - Sharing capabilities
api/internal/handler/share_group_handler.go - Shopping lists
api/internal/handler/shopping_list_handler.go - Account endpoints
api/internal/handler/user_handler.go
Domain and storage
- Recipe and account domain
api/internal/domain - Persistence repositories
api/internal/repository - PostgreSQL database
api/internal/database/database.go - Avatar storage
api/internal/storage/avatar_storage.go - S3-compatible service
AWS deployment
- AWS application stack
infra/lib/recipe-stack.ts - Infrastructure entry
infra/bin/infra.ts - API Lambda
- Static asset bucket
- Avatar bucket
- CloudFront distribution
Other components
- User
Connections 20
- User → Application routes: opens app
- Recipe form → Recipe input fields: renders
frontend/src/features/recipes/components/RecipeForm.tsx - Recipe form → Recipe steps input: renders
frontend/src/features/recipes/components/RecipeForm.tsx - Recipe form → Recipe source input: renders
frontend/src/features/recipes/components/RecipeForm.tsx - Recipe form → Recipe selectors: renders
frontend/src/features/recipes/components/RecipeForm.tsx - Recipe form → Recipe labels input: renders
frontend/src/features/recipes/components/RecipeForm.tsx - Authentication client → Access token store: updates tokens
frontend/src/shared/auth/authClient.ts - Authentication client → CSRF header: sets header
frontend/src/shared/auth/authClient.ts - HTTP server entry → Application wiring: creates app
api/main.go - HTTP server entry → PostgreSQL database: connects and migrates
api/main.go - HTTP server entry → S3-compatible service: creates client
api/main.go - Infrastructure entry → AWS application stack: instantiates
infra/bin/infra.ts - AWS application stack → API Lambda: configures
infra/lib/recipe-stack.ts - AWS application stack → Static asset bucket: creates and deploys assets
infra/lib/recipe-stack.ts - AWS application stack → Avatar bucket: creates and grants access
infra/lib/recipe-stack.ts - AWS application stack → CloudFront distribution: routes requests
infra/lib/recipe-stack.ts - API Lambda → Avatar bucket: uploads and deletes
- CloudFront distribution → Static asset bucket: serves SPA
- CloudFront distribution → API Lambda: forwards API requests
- CloudFront distribution → Avatar bucket: serves avatars