A modern, responsive dashboard for managing Minecraft servers via the Mango v3 API, built with Svelte + Vite.
ā
Auth System ā Login/register with JWT
ā
Server Management ā List, start, stop, restart servers
ā
Real-time Stats ā CPU, memory, player count, uptime
ā
Server Console ā Send commands, view output (simulated)
ā
Mock API ā Full testing without the real backend
ā
Responsive Design ā Dark mode, clean UI
npm install
npm run dev:full
This starts:
http://localhost:5173http://localhost:5174# Terminal 1: Mock API
npm run dev:mock
# Terminal 2: Dev server
npm run dev
Email: [email protected]
Password: password123
Mock servers will load automatically. You can start/stop/restart them in the UI.
src/
āāā App.svelte # Main layout & routing
āāā pages/
ā āāā Login.svelte # Auth (login & register)
ā āāā ServerList.svelte # Server grid
ā āāā ServerDetail.svelte # Console, stats, controls
āāā stores/
ā āāā auth.ts # Auth state & API calls
ā āāā servers.ts # Server state & API calls
āāā app.css # Global styles & dark theme
āāā main.ts # Entry point
mock-api.ts # Mock backend (Express)
All authenticated requests need Authorization: Bearer <email>
POST /mock/auth/login ā LoginPOST /mock/auth/register ā RegisterGET /mock/servers ā List allGET /mock/servers/:id ā Get onePOST /mock/servers/:id/start ā StartPOST /mock/servers/:id/stop ā StopPOST /mock/servers/:id/restart ā Restartsrc/stores/auth.ts ā Change base URL from localhost:5174 to real APIsrc/stores/servers.ts ā Samenpm run build
npm run preview
Outputs to dist/ ā ready to deploy!
Built with ā¤ļø in Svelte | Mango v3 API Docs