How rafael-men/anime-database works
Anime Database is an Angular/NestJS application for discovering anime and organizing a user’s viewing activity and social profile. The main workflow runs from the Angular screens through API services to NestJS controllers and domain use cases, which persist user data in MySQL; anime catalog data comes from AniList. The graph also includes documented auth/session, group, follow, translation, admin and avatar-storage capabilities. Several UI-to-service links and unsampled subsystems are documented in the README but not verified in source excerpts, so those links are dashed.
Main entry points: anime.service.ts API services · app.routes.ts App routing · user.model.ts Persistent models · user.controller.ts User endpoints
Components 34
Angular client
- App routing
client/src/app/app.routes.ts - Catalog screens
client/src/app/components/home/home.ts - Anime details
client/src/app/components/anime-details/anime-details.ts - Character screens
client/src/app/components/characters-page/characters-page.ts - Profile screens
client/src/app/components/profile/profile.ts - Favorites and diary
client/src/app/components/favourites-page/favourites-page.ts - Custom lists UI
client/src/app/components/groups-component/groups-component.ts - Social UI
client/src/app/components/profile/follow-component/follow-component.ts - Admin validation UI
client/src/app/components/admin/validation-page/validation-page.ts - API services
client/src/api/services/anime.service.ts - API endpoints
client/src/api/routes/routes.ts
Backend API
- Auth endpoints
server/src/application/auth/auth.controller.ts - User endpoints
server/src/application/controllers/user.controller.ts - Review endpoints
server/src/application/controllers/review.controller.ts - Group endpoints
server/src/application/controllers/group.controller.ts - Watchlist endpoints
server/src/application/controllers/watchlist.controller.ts - Follow endpoints
server/src/application/controllers/follow.controller.ts - Admin endpoints
server/src/application/controllers/admin.controller.ts
Domain capabilities
- Authentication and sessions
server/src/application/auth/auth.service.ts - Favorites and reviews
server/src/use-cases/user/user-anime-actions.service.ts - Profile management
server/src/use-cases/user/user.service.ts - Group lists
server/src/use-cases/group/group.service.ts - Watchlist management
server/src/use-cases/watchlist/watchlist.service.ts - Follow relationships
server/src/use-cases/follow/follow.service.ts
Data and integrations
- Persistent models
server/src/domain/models/user.model.ts - MySQL
- Session store service
server/src/application/sessions/sessions.service.ts - Redis
- Avatar storage selection
server/src/storage/storage.module.ts - Local avatar storage
server/src/storage/local-storage.provider.ts - S3 avatar storage
server/src/storage/s3-storage.provider.ts
Other components
- User
- S3-compatible storage
- AniList GraphQL
Connections 45
- User → App routing: uses
README.md - App routing → Catalog screens: routes to
client/src/app/app.routes.ts - App routing → Anime details: routes to
client/src/app/app.routes.ts - App routing → Character screens: routes to
client/src/app/app.routes.ts - App routing → Profile screens: routes to
client/src/app/app.routes.ts - App routing → Favorites and diary: routes to
client/src/app/app.routes.ts - App routing → Custom lists UI: routes to
client/src/app/app.routes.ts - App routing → Admin validation UI: routes to
client/src/app/app.routes.ts - Catalog screens → API services: requests catalog
README.md - Anime details → API services: loads details
README.md - Character screens → API services: requests counts
README.md - Profile screens → API services: loads profile
README.md - Favorites and diary → API services: manages activity
README.md - Custom lists UI → API services: manages lists
README.md - Social UI → API services: manages follows
README.md - Admin validation UI → API services: submits decisions
client/src/app/components/admin/validation-page/validation-page.ts - API services → API endpoints: uses endpoints
README.md - API services → AniList GraphQL: queries catalog
README.md - API services → Auth endpoints: calls auth
README.md - API services → User endpoints: calls users
README.md - API services → Review endpoints: calls reviews
README.md - API services → Group endpoints: calls groups
README.md - API services → Watchlist endpoints: calls watchlist
README.md - API services → Follow endpoints: calls follows
README.md - API services → Admin endpoints: calls admin
README.md - Auth endpoints → Authentication and sessions: delegates auth
server/src/application/auth/auth.controller.ts - Authentication and sessions → Session store service: creates sessions
server/src/application/auth/auth.service.ts - User endpoints → Favorites and reviews: manages favorites
server/src/application/controllers/user.controller.ts - User endpoints → Profile management: updates profile
server/src/application/controllers/user.controller.ts - Review endpoints → Favorites and reviews: loads reviews
server/src/application/controllers/review.controller.ts - Group endpoints → Group lists: delegates groups
server/src/application/controllers/group.controller.ts - Watchlist endpoints → Watchlist management: delegates entries
server/src/application/controllers/watchlist.controller.ts - Follow endpoints → Follow relationships: manages follows
- Admin endpoints → Profile management: reviews requests
- Favorites and reviews → Persistent models: queries entities
server/src/use-cases/user/user-anime-actions.service.ts - Profile management → Persistent models: queries users
server/src/use-cases/user/user.service.ts - Group lists → Persistent models: uses entities
- Watchlist management → Persistent models: uses entries
- Follow relationships → Persistent models: uses relationships
- Persistent models → MySQL: persists records
README.md - Session store service → Redis: stores sessions
README.md - User endpoints → Avatar storage selection: uploads avatar
server/src/application/controllers/user.controller.ts - Avatar storage selection → Local avatar storage: selects local
server/src/storage/storage.module.ts - Avatar storage selection → S3 avatar storage: selects S3
server/src/storage/storage.module.ts - S3 avatar storage → S3-compatible storage: uploads object
server/src/storage/s3-storage.provider.ts