How alexcovolan/vigia-farm works
Vigia Farm is a Mu Online farm-management web app. Players use a browser dashboard to manage characters and their resources, inspect resource totals, maintain hunting spots, and configure classes and maps; the frontend calls a FastAPI backend that persists records in MySQL. Character CRUD and the frontend’s character API calls are visible in the excerpts. Spots and configuration are documented capabilities, but their frontend implementation was not sampled; those links are therefore left unasserted.
Main entry points: personagens.js Characters and resources · models.py Domain ORM models · main.py Class and map endpoints · database.py Database engine and sessions
Components 15
Browser interface
- Web dashboard
frontend/index.html
Farm management
- Characters and resources
frontend/js/personagens.js - Resource X-ray
frontend/js/personagens.js - Character backup
frontend/js/personagens.js - Spot management
frontend - Class and map config
frontend
API and persistence
- Character endpoints
backend/main.py - Spot endpoints
backend/main.py - Class and map endpoints
backend/main.py - Default class/map seeding
backend/main.py - Request and response schemas
backend/schemas.py - Domain ORM models
backend/models.py - Database engine and sessions
backend/database.py
External services
- MySQL database
Other components
- Farm manager
Connections 18
- Farm manager → Web dashboard: uses
readme.md - Web dashboard → Characters and resources: loads
- Characters and resources → Character endpoints: requests characters
frontend/js/personagens.js - Characters and resources → Class and map endpoints: fetches options
frontend/js/personagens.js - Resource X-ray → Characters and resources: inspects character data
frontend/js/personagens.js - Character backup → Characters and resources: exports character data
frontend/js/personagens.js - Spot management → Spot endpoints: manages spots
- Class and map config → Class and map endpoints: manages options
- Character endpoints → Request and response schemas: validates and responds
backend/main.py - Character endpoints → Domain ORM models: queries and persists
backend/main.py - Spot endpoints → Request and response schemas: validates requests
backend/main.py - Spot endpoints → Domain ORM models: queries and persists
backend/main.py - Class and map endpoints → Request and response schemas: validates and responds
backend/main.py - Class and map endpoints → Domain ORM models: queries and persists
backend/main.py - Default class/map seeding → Domain ORM models: seeds defaults
backend/main.py - Default class/map seeding → Database engine and sessions: opens session
backend/main.py - Domain ORM models → Database engine and sessions: uses base
backend/models.py - Database engine and sessions → MySQL database: connects to
backend/database.py