How dustin9x/phtv-datvexemphim works
Main Components
• Frontend: This is built with ReactJS and Redux. Its folder (“frontend”) includes all the pages (Home, Login, Register, Movie Detail, Seat Selection, Admin panels, etc.), components, templates, and services to handle state management and API calls. Indicate that it handles user interactions, displays movie information, manages seat selection, and supports user authentication.
• Backend: Located in the “backend” folder, this is a Laravel application following the MVC (Model-View-Controller) paradigm. It includes models, controllers (especially API controllers), routes (located in routes/api.php, routes/web.php), middleware, migrations, seeders, and configuration files. This layer is responsible for API endpoints for actions such as authentication, movie management, booking operations, seat and order management, and admin CRUD.
• Database: The backend uses a MySQL database (as indicated by the migrations and the reference to phpMyAdmin). This stores users, movies, theaters, seats, orders, banners, news, and other related data.
• External Tools/Services: Mention integration points such as the payment processing (implied in the ticket booking process), email services for notifications (templates under resources/views/mail), and any other external dependencies determined by the environment configuration.
Architectural Patterns and Design Principles
• Present a layered architecture: Separation into presentation (ReactJS), business logic (Laravel controllers and services), and persistence (database models/migrations). Emphasize the modular design, with clear boundaries between components.
• That Laravel follows the MVC pattern, with models (e.g., User, Movie, OrderDetail) and controllers that encapsulate business logic.
• Configuration & routing: Indicate that environment files (.env), configuration settings, and migration/seeders set up the initial state of the system and its dependencies.
Technologies Involved
• Frontend: ReactJS, Redux, NodeJS (for development), and Tailwind CSS (as seen in tailwind.config.js).
• Backend: PHP Laravel framework, with additional dependencies managed via Composer (composer.json) and PHP artisan CLI for migrations and seeding.
• Database: MySQL with phpMyAdmin used for management.
• Additional Tools: Git for version control (with .gitignore files and other git config files), and possibly npm for dependency management in both frontend and backend.