How krish-karmacharya/movie-ticket-booking-system works
• Frontend Application:
• Represented by the "frontend" directory.
• Built with React.js, using Material-UI for design, Redux Toolkit for state management, React Router for navigation, and Axios for interfacing with the backend APIs.
• Key components include pages like HomePage, Movies management components (AddMovie, AllMovies, MovieItem, Movies), authentication and profile components, and utilities (like API helpers).
• Backend Application:
• Represented by the "backend" directory.
• Built using Node.js with Express.js. It contains clear separation with controllers, models, and routes for handling various aspects (movies, users, bookings, and admin-related operations).
• Controllers such as admin-controller.js, booking-controller.js, movie-controller.js, and user-controller.js indicate RESTful API endpoints.
• Data models for Admin, Bookings, Movie, and User (as seen in the models folder) indicate interactions with MongoDB via Mongoose.
• Middleware and business logic like JWT-based authentication and password hashing using bcryptjs.
• Database:
• Although not in the repository file structure physically, the README and backend setup instructions clearly indicate MongoDB is used.
Relationships and Interactions
• That the frontend communicates with endpoints such as authentication (login/register) and movie management endpoints (GET, POST, PUT, DELETE for movies) through the Express server.
• If applicable, note interactions between different controllers and models in the backend to showcase internal request flows.
Architectural Patterns and Technologies
• RESTful API architecture used in the backend.
• Usage of JWT for authentication handling, which secures endpoints and manages user sessions.
• Mention password security measures using bcryptjs in the backend.
• On the frontend, indicate the use of Redux Toolkit for state management and React Router for navigational state.
• Clearly label external libraries or frameworks like Material-UI (MUI).