How nnez17/enznrinnapp works
Enznrinn is a shared savings and personal-tracking product for two people, delivered through a Flutter client and Go API. The user-facing flow is to interact with a feature screen, have the client communicate with the API, and receive server-validated or server-derived results backed by PostgreSQL. The API covers transactions and balance, savings targets, wishlist, diary, and cycle tracking; cycle overview is a distinct derived-data stage. The README documents the client/API and API/storage boundaries; some mobile internals were not sampled, so feature-to-client wiring is left unasserted.
Main entry points: routes.go Route registration · repo.go SQL repositories · app.dart Flutter app · api_client.dart API client
Components 20
Flutter client
- Flutter app
apps/mobile/lib/app/app.dart - Savings screens
apps/mobile/lib/features/savings/presentation - Wishlist screen
apps/mobile/lib/features/wishlist/presentation/wishlist_screen.dart - Diary screen
apps/mobile/lib/features/diary/presentation/diary_screen.dart - Cycle tracker
apps/mobile/lib/features/period_tracker/presentation/period_tracker_screen.dart - API client
apps/mobile/lib/core/network/api_client.dart
HTTP API
- Route registration
apps/api/internal/routes/routes.go - HTTP middleware
apps/api/internal/middleware/middleware.go - HTTP handlers
apps/api/internal/handlers/handler.go
Domain logic
- Business services
apps/api/internal/services/service.go - Cycle calculations
apps/api/internal/services/cycle.go
Persistence
- SQL repositories
apps/api/internal/repositories/repo.go - PostgreSQL
- User schema
packages/database/schema/users.ts - Transaction schema
packages/database/schema/transactions.ts - Target schema
packages/database/schema/targets.ts - Wishlist schema
packages/database/schema/wishlist.ts - Diary schema
packages/database/schema/diary.ts - Cycle schema
packages/database/schema/cycle.ts
Other components
- Couple
Connections 15
- Couple → Flutter app: uses
README.md - Flutter app → API client: communicates through
- API client → Route registration: sends API requests
README.md - Route registration → HTTP middleware: installs
apps/api/internal/routes/routes.go - Route registration → HTTP handlers: dispatches
apps/api/internal/routes/routes.go - HTTP handlers → Business services: calls
apps/api/internal/handlers/handler.go - Business services → SQL repositories: calls
apps/api/internal/services/service.go - Cycle calculations → SQL repositories: loads cycle data
- SQL repositories → PostgreSQL: reads and writes
README.md - User schema → PostgreSQL: defines table
README.md - Transaction schema → PostgreSQL: defines table
README.md - Target schema → PostgreSQL: defines table
README.md - Wishlist schema → PostgreSQL: defines table
README.md - Diary schema → PostgreSQL: defines table
README.md - Cycle schema → PostgreSQL: defines table
README.md