07 Estructura del proyecto - UnaiMunoz/Visualist GitHub Wiki
Estructura del proyecto
Front-end
frontend/
βββ public/ # Recursos estΓ‘ticos
β βββ _redirects # Reglas de redirecciΓ³n de Netlify para SPA
βββ src/
β βββ components/ # Componentes reutilizables de React
β β βββ Carousel.jsx
β β βββ CarouselItem.jsx
β β βββ Footer.jsx
β β βββ Hero.jsx
β β βββ Layout.jsx
β β βββ Navbar.jsx
β β βββ ...
β βββ context/ # GestiΓ³n del estado de autenticaciΓ³n
β β βββ AuthContext.jsx
β βββ css/ # Hojas de estilo CSS
β β βββ index2.css
β β βββ auth.css
β β βββ media-detail.css
β β βββ profile.css
β β βββ ...
β βββ pages/ # PΓ‘ginas principales
β β βββ Home.jsx
β β βββ Movies.jsx
β β βββ MovieDetail.jsx
β β βββ Series.jsx
β β βββ SeriesDetail.jsx
β β βββ Login.jsx
β β βββ Register.jsx
β β βββ Profile.jsx
β βββ services/ # Servicios API
β β βββ authServices.js
β β βββ listServices.js
β β βββ moviesServices.js
β β βββ seriesServices.js
β β βββ userServices.js
β βββ App.jsx
β βββ main.jsx
β βββ index.css
βββ package.json # Dependencias y scripts de construcciΓ³n
Back-end
backend/
βββ .env.example # Variables de entorno de ejemplo
βββ .htaccess # ConfiguraciΓ³n para Apache
βββ README.md
βββ index.php # Punto de entrada del backend
βββ api/ # Endpoints de API organizados por funcionalidad
β βββ auth/ # Endpoints de autenticaciΓ³n
β β βββ login.php
β β βββ logout.php
β β βββ register.php
β β βββ session.php
β β βββ update-profile.php
β βββ lists/ # GestiΓ³n de listas de usuario
β β βββ add.php
β β βββ check.php
β β βββ get-data.php
β β βββ get.php
β β βββ remove.php
β β βββ update-data.php
β βββ movies/ # Endpoints de datos de pelΓculas
β β βββ detail.php
β β βββ index.php
β β βββ search.php
β β βββ top.php
β βββ series/ # Endpoints de datos de series de TV
β βββ detail.php
β βββ index.php
β βββ search.php
β βββ top.php
βββ config/ # ConfiguraciΓ³n
β βββ config.php
βββ includes/ # Clases compartidas y utilidades
βββ Database.php
βββ ListManager.php
βββ TMDBService.php
βββ User.php