How ksendel-coder/practice_project works
MultiCinema is a React/TypeScript film-discovery SPA with an Express backend. The principal journey is browsing or searching films, filtering and paging results, then opening a selected film’s video; signed-in users can also register or log in, edit profiles, and create and like discussion threads. The graph separates page workflows, shared state, API access, and server responsibilities. Server routes and JSON-file persistence are documented in the README; the referenced database file is not present in the supplied tree, so it is not represented as a separate repository node.
Main entry points: App.tsx Route application · Films.tsx Film browser · auth.ts Authentication API · Api.ts HTTP client
Components 22
User experience
- Route application
src/App/App.tsx - Home
src/Components/Pages/Home/Home.tsx - Navigation and search
src/Components/Widgets/Header/Header.tsx - Film browser
src/Components/Pages/Films/Films.tsx - Film filtering
src/Hooks/useFilmFilters.ts - Pagination
src/Hooks/usePagination.ts - Video modal
src/Components/Layouts/VideoModal/VideoModal.tsx - Film API
src/Api/films.ts
Identity and profile
- Protected routes
src/Components/ProtectedPages.tsx - Registration
src/Components/Pages/CreateUser/CreateUser.tsx - Login
src/Components/Pages/Login/Login.tsx - Profile editing
src/Components/Pages/Profile/Profile.tsx - Authentication API
src/Api/auth.ts
Threads
- Thread posts
src/Components/Pages/Threads/Threads.tsx - Thread API
src/Api/threads.ts
Client foundations
- HTTP client
src/Api/Api.ts - Redux store
src/Stores/Store.ts - User state
src/Reducers/userReduce.ts - Search state
src/Reducers/searchReduce.ts
Backend
- Express API and JSON persistence
server/server.js
Other components
- Visitor
- API service
Connections 28
- Visitor → Route application: opens
src/App/App.tsx - Route application → Home: routes to
src/App/App.tsx - Route application → Film browser: routes to
src/App/App.tsx - Route application → Thread posts: routes to
src/App/App.tsx - Route application → Profile editing: routes to
src/App/App.tsx - Route application → Login: routes to
src/App/App.tsx - Route application → Registration: routes to
src/App/App.tsx - Route application → Protected routes: protects routes
src/App/App.tsx - Home → Navigation and search: shares layout
- Navigation and search → Search state: dispatches search
src/Components/Widgets/Header/Header.tsx - Film browser → Film API: fetches films
src/Components/Pages/Films/Films.tsx - Film browser → Film filtering: filters results
src/Components/Pages/Films/Films.tsx - Film browser → Pagination: pages results
src/Components/Pages/Films/Films.tsx - Film browser → Video modal: opens selected video
src/Components/Pages/Films/Films.tsx - Film browser → Search state: reads and clears
src/Components/Pages/Films/Films.tsx - Registration → Authentication API: registers account
src/Components/Pages/CreateUser/CreateUser.tsx - Login → Authentication API: authenticates
src/Components/Pages/Login/Login.tsx - Login → User state: dispatches sign-in
src/Components/Pages/Login/Login.tsx - Profile editing → Authentication API: updates profile
src/Components/Pages/Profile/Profile.tsx - Profile editing → User state: dispatches update
src/Components/Pages/Profile/Profile.tsx - Thread posts → Thread API: loads and mutates
src/Components/Pages/Threads/Threads.tsx - Redux store → User state: combines reducer
src/Stores/Store.ts - Redux store → Search state: combines reducer
src/Stores/Store.ts - Authentication API → HTTP client: uses client
src/Api/auth.ts - Film API → HTTP client: uses client
src/Api/films.ts - Thread API → HTTP client: uses client
src/Api/threads.ts - HTTP client → API service: sends requests
src/Api/Api.ts - API service → Express API and JSON persistence: serves routes
README.md