How jaewonhimnae/react-tmdb-app works
Project type and purpose
• This is a classic full-stack MERN-style web application.
• Frontend: React SPA (with Redux for state management).
• Backend: Node/Express API server.
• Database: MongoDB (via Mongoose).
• External service: The Movie Database (TMDB) API for movie metadata.
• Purpose: Browse, like/dislike, favorite videos; leave comments; user auth/registration.
File structure
• Top-level:
• client/ – React app (“public”, “src” with actions, reducers, components, HOC auth).
• server/ – Express app (config, middleware, models, routes).
• Patterns:
• Client uses Redux (/_actions, /_reducers).
• Server uses MVC-style separation: routes → controllers (implicitly in route handlers) → Mongoose models.
• Auth middleware (JWT based) guards protected routes.
• Proxy setup (client/src/setupProxy.js) routes /api calls to server.
Key insights from README
• Environment config: server/config/dev.js for MongoDB URI and secret keys.
• Build steps: install in root (server) & client.