How donohuedev/entertainme works
entertainME is a media-tracking and review application for games, anime, movies, and shows. Users browse or search titles, view details, and—when authenticated—manage ratings and collection status through a dashboard; account flows support registration and sign-in. The React client calls an Express API, whose route handlers delegate to controllers that access PostgreSQL through Prisma. The README documents search, filtering, and movies/shows as capabilities, though their implementations are not sampled. Dashed links mark inferred HTTP or unsampled route wiring.
Main entry points: App.js App routing · server.ts Express API · authController.ts Authentication services · useFetchUserContentData.js Collection data hook
Components 27
React client
- App routing
frontend/src/App.js - Home browsing
frontend/src/pages/HomePage.js - Search and filters
frontend/src/pages/searchPage.js - Game details
frontend/src/pages/gameDetailPage.js - Anime details
frontend/src/pages/animeDetailPage.js - User dashboard
frontend/src/pages/AccountDashboard.js - Profile management
frontend/src/pages/ProfilePage.js
Accounts
- Session context
frontend/src/context/userContext.js - Login and registration
frontend/src/pages/LoginPage.js - Registration
frontend/src/pages/RegisterPage.js - OAuth callback
frontend/src/pages/OAuthCallback.js - Authentication routes
backend/src/routes/auth.ts - Authentication services
backend/src/controllers/authController.ts - JWT authorization
backend/src/middleware/auth.ts
Media catalog
- Anime catalog
backend/src/controllers/animeController.ts - Game catalog
backend/src/controllers/gamesController.ts - Movie endpoints
backend/src/routes/movies.ts - Show endpoints
backend/src/routes/shows.ts
User collections
- Collection data hook
frontend/src/hooks/useFetchUserContentData.js - Collection routes
backend/src/routes/userGames.ts - Ratings and status
backend/src/controllers/userContentController.ts
API and storage
- Express API
backend/src/server.ts - PostgreSQL
backend/src/config/database.ts
Other components
- User
- RAWG and anime APIs
- Email service
- CAPTCHA service
Connections 35
- User → App routing: uses
- App routing → Home browsing: routes to
frontend/src/App.js - App routing → Game details: routes to
frontend/src/App.js - App routing → Search and filters: routes to
frontend/src/App.js - App routing → Anime details: routes to
frontend/src/App.js - App routing → User dashboard: routes to
frontend/src/App.js - App routing → Profile management: routes to
frontend/src/App.js - App routing → Session context: provides session
frontend/src/App.js - User → Login and registration: signs in
- User → Registration: registers
- Login and registration → Authentication routes: submits credentials
- Registration → Authentication routes: submits registration
- OAuth callback → Session context: sets session
frontend/src/pages/OAuthCallback.js - Authentication routes → Authentication services: dispatches
backend/src/routes/auth.ts - Authentication services → PostgreSQL: reads and writes
- Authentication services → CAPTCHA service: verifies challenge
backend/src/controllers/authController.ts - Authentication services → Email service: sends verification
backend/src/controllers/authController.ts - User dashboard → Collection data hook: loads collection
frontend/src/pages/AccountDashboard.js - Collection data hook → Collection routes: fetches user data
- Collection routes → Ratings and status: dispatches
backend/src/routes/userGames.ts - Ratings and status → PostgreSQL: updates ratings
- Game details → Collection data hook: loads user data
- Anime details → Collection data hook: loads user data
- Home browsing → Express API: requests catalog
- Search and filters → Express API: searches titles
- Express API → Anime catalog: mounts routes
backend/src/server.ts - Express API → Game catalog: mounts routes
backend/src/server.ts - Express API → Movie endpoints: mounts routes
- Express API → Show endpoints: mounts routes
- Anime catalog → PostgreSQL: reads and writes
backend/src/controllers/animeController.ts - Game catalog → PostgreSQL: reads and writes
backend/src/controllers/gamesController.ts - Game catalog → RAWG and anime APIs: imports game data
backend/src/controllers/gamesController.ts - Anime catalog → RAWG and anime APIs: imports anime data
- Profile management → Express API: updates profile
- Express API → JWT authorization: protects endpoints