Backend Configuration
The backend uses Spring Boot’sapplication.properties for configuration. Located at:
Server Configuration
The port on which the Spring Boot server runs. Can be overridden via environment variable.
Data Dragon API Configuration
Data Dragon is Riot Games’ CDN for League of Legends static assets and data.
Base URL for Data Dragon API. Should not need to change unless using a mirror.
League of Legends patch version. Update this when new patches are released to get latest item data.Find current version at: https://ddragon.leagueoflegends.com/api/versions.json
Language code for localized item data. Options include:
en_US- English (US)es_MX- Spanish (Mexico)es_ES- Spanish (Spain)pt_BR- Portuguese (Brazil)- And more…
Cache Configuration
The application uses Caffeine cache to store Data Dragon responses and reduce API calls.
Cache provider. Set to
caffeine for in-memory caching with high performance.Caffeine cache specification:
maximumSize=500: Maximum number of entriesexpireAfterWrite=24h: Cache entries expire after 24 hours
CORS Configuration
Comma-separated list of allowed origins for CORS. In production, set this to your frontend domain:
WebClient Configuration
Connection timeout in milliseconds for Data Dragon API requests.
Read timeout in milliseconds. Data Dragon responses can be large (500KB+).
Maximum buffer size (5MB) for in-memory response handling. Required for large Data Dragon JSON responses.
Logging Configuration
Frontend Configuration
The frontend uses Vite’s environment variable system with.env files.
Environment Variables
Create a.env file in the frontend root directory:
Backend API base URL. All API requests are prefixed with this URL.Development:
http://localhost:5000/apiProduction: https://api.yourdomain.com/apiAll Vite environment variables must be prefixed with
VITE_ to be exposed to the frontend code.Usage in Code
The API URL is configured inconstants/theme.js:
Game Configuration
Game mechanics are configured inconstants/theme.js:
Color Theme
Environment-Specific Configuration
Development
Backend.env or environment variables:
.env:
Production
Backend environment variables:.env.production:
Configuration Validation
To verify your configuration:CORS Check
Open browser console on frontend and check for CORS errors. If you see:Verify
CORS_ORIGINS matches your frontend URL exactly.Next Steps
Data Dragon Integration
Learn how caching and API integration works
Backend Architecture
Understand the Spring Boot service layer