How desapp-2024c2-grupo-3/gestion-convocatorias-frontend works
This project is a frontend template built with React and Vite, designed for educational purposes by the Universidad Nacional de Hurlingham. It comes with built‐in integrations for Material UI, Redux (demonstrated in one of the components), React Router, and Axios. The purpose of the project is to serve as a starting point for building React-based front-end applications, where developers can incrementally add functionality while gradually removing the example code.
Main Components
• Entry Point & Build System:
• index.html (serves as the HTML shell)
• main.jsx (bootstraps the React app using Vite as the builder)
• Core Application Components:
• App.jsx – The main container of the application.
• AppRouter.jsx – Handles navigation using React Router.
• Pages:
• ActorsPage.jsx, FilmsPage.jsx, FilmsPageReduxStyle.jsx – Represent different parts of the UI (screen components) with example functionalities.
• UI Components:
• TopMenu.jsx, AddFilmDialog.jsx, WeatherIndicator.jsx – Reusable UI components for navigation, dialogs, and additional indicators.
• Configuration:
• The configuration folder (config) containing config.js and customMuiTheme.js – These files help customize the application behavior and UI theme (Material UI).
• Services:
• Service files (ActorsService.js, FilmService.js, WeatherService.js) – Act as API-call helpers (using Axios) to fetch or interact with data.
• State Management:
• Redux store (store.js) and the film slice (filmSlice.js) – Provide global state management for the application.
Relationships and Interactions
• The index.html is the static entry point that loads the bundled JavaScript.
• main.jsx initializes and renders the App component.
• App.jsx integrates with AppRouter.jsx to manage route-based rendering using React Router.
• Each route in the AppRouter links to one of the pages (ActorsPage, FilmsPage, etc.).
• The pages use UI components (like TopMenu, AddFilmDialog and WeatherIndicator) to build the interactive interface.
• The configuration files set the theme for UI elements (via Material UI) and general configs.
• The service layer (ActorsService, FilmService, WeatherService) is used by pages/components to communicate with external API endpoints.
• Redux (with its filmSlice and store files) is integrated within the React components to manage and propagate state changes, especially highlighted in FilmsPageReduxStyle.jsx.
Architectural Patterns & Design Principles
• Component-Based Architecture: Separation of concerns through modular React components.
• Configuration Management: Dedicated folder for theming and application-level settings.
• Service Abstraction: Isolating API calls into separate service files facilitates easy modifications and testing.
Technologies and Libraries
• Vite for fast development and bundling.
• React for building UI components.
• Material UI for theming and styled components.
• Redux for global state management.
• React Router for handling route-based UI navigation.
• Axios (implied in the services) for HTTP requests.