Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -415,6 +415,42 @@ class MetadataService {
|
||||
|
||||
## Configuración y despliegue
|
||||
|
||||
### Configuración de variables de entorno
|
||||
|
||||
Para configurar las credenciales de las APIs externas en Quasar, sigue estos pasos:
|
||||
|
||||
#### 1. Archivo `.env`
|
||||
|
||||
El archivo [`backend/.env`](../../backend/.env) contiene las variables de entorno necesarias. Este archivo **NO** debe ser commiteado al repositorio (ya está incluido en [`.gitignore`](../../.gitignore)).
|
||||
|
||||
#### 2. Variables requeridas
|
||||
|
||||
Añade las siguientes variables a tu archivo [`backend/.env`](../../backend/.env):
|
||||
|
||||
```bash
|
||||
# IGDB (Internet Game Database)
|
||||
IGDB_CLIENT_ID=your_igdb_client_id_here
|
||||
IGDB_CLIENT_SECRET=your_igdb_client_secret_here
|
||||
|
||||
# RAWG Video Games Database
|
||||
RAWG_API_KEY=your_rawg_api_key_here
|
||||
|
||||
# TheGamesDB
|
||||
THEGAMESDB_API_KEY=your_thegamesdb_api_key_here
|
||||
```
|
||||
|
||||
#### 3. Archivo de ejemplo
|
||||
|
||||
El archivo [`backend/.env.example`](../../backend/.env.example) contiene todas las variables de entorno disponibles con sus descripciones. Úsalo como referencia cuando configures tu entorno.
|
||||
|
||||
#### 4. Instrucciones detalladas por API
|
||||
|
||||
Consulte la sección [Obtención de claves](#obtención-de-claves) para instrucciones detalladas sobre cómo obtener cada credencial:
|
||||
|
||||
- **IGDB**: [https://dev.twitch.tv/console](https://dev.twitch.tv/console)
|
||||
- **RAWG**: [https://rawg.io/apicreate](https://rawg.io/apicreate)
|
||||
- **TheGamesDB**: [https://thegamesdb.net/api.php](https://thegamesdb.net/api.php)
|
||||
|
||||
### Testing Without Real Keys
|
||||
|
||||
Para desarrollo/testing:
|
||||
|
||||
Reference in New Issue
Block a user