How jero2410/mmdb works
This repository is a movie-discovery web app with a React client and a NestJS/PostgreSQL server. The visible user workflow is loading the home screen, requesting paginated movies through a client hook and API function, and rendering shared navigation and informational or account screens. The server excerpts show only a hello-world route plus database configuration and a movie entity; they do not show a server-side movie endpoint. The README is empty, so capability and connection claims are limited to the tree and shown source references.
Main entry points: App.tsx Route shell · app.module.ts Application module · data-source.ts Database configuration · movies.api.ts Movies API client
Components 22
Client UI
- Route shell
client/src/App.tsx - Header and search
client/src/components/header.tsx - Footer
client/src/components/footer.tsx - Home screen
client/src/screens/homeScreen.tsx - Login screen
client/src/screens/loginScreen.tsx - Signup screen
client/src/screens/signupScreen.tsx - About screen
client/src/screens/AboutScreen.tsx - Help screen
client/src/screens/HelpScreen.tsx - Privacy policy
client/src/screens/PrivacyPolicyScreen.tsx - Terms screen
client/src/screens/TermsScreen.tsx
Client Data
- Movie query hook
client/src/hooks/useMovies.ts - Movies API client
client/src/api/movies.api.ts - Generic fetch hook
client/src/hooks/useFetch.ts - Fetch states
client/src/types/states.type.ts
Server App
- Hello service
server/src/app.service.ts - Root controller
server/src/app.controller.ts - Application module
server/src/app.module.ts
Persistence
- Database configuration
server/src/data-source.ts - Movie entity
server/src/movies/entities/movies.entity.ts
Other components
- Visitor
- PostgreSQL
- Movies endpoint
Connections 20
- Visitor → Route shell: uses
- Route shell → Header and search: renders
client/src/App.tsx - Route shell → Footer: renders
client/src/App.tsx - Route shell → Home screen: routes to
client/src/App.tsx - Route shell → Login screen: routes to
client/src/App.tsx - Route shell → Signup screen: routes to
client/src/App.tsx - Route shell → About screen: routes to
client/src/App.tsx - Route shell → Help screen: routes to
client/src/App.tsx - Route shell → Privacy policy: routes to
client/src/App.tsx - Route shell → Terms screen: routes to
client/src/App.tsx - Movie query hook → Movies API client: calls
client/src/hooks/useMovies.ts - Movies API client → Movies endpoint: requests
client/src/api/movies.api.ts - Generic fetch hook → Fetch states: uses
client/src/hooks/useFetch.ts - Application module → Root controller: registers
server/src/app.module.ts - Application module → Hello service: provides
server/src/app.module.ts - Application module → Database configuration: configures
server/src/app.module.ts - Root controller → Hello service: calls
server/src/app.controller.ts - Database configuration → Movie entity: registers
server/src/data-source.ts - Database configuration → PostgreSQL: configures
server/src/data-source.ts - Movies endpoint → PostgreSQL: serves movies