How hanshans135/boardmate works
Project type and purpose
• This is a full-stack, monolithic web application built with Python Flask.
• Purpose: provide a user-friendly panel (“BoardMate”) for Pterodactyl server management, with features like Discord OAuth login, code redemption, an administrator backend, and a simple Admin API.
File structure
• app.py at project root – main Flask application entrypoint.
• /views – Flask view-functions organized by feature (admin, api, code, index, oauth, shop).
• /templates – Jinja2 HTML templates for user pages and admin pages.
• /static – CSS, JS, images, third-party assets (Tailwind, Alpine.js, Chart scripts).
• /utils – helper modules (dc.py for Discord, ptero_api.py for Pterodactyl API).
• /data – simple JSON file store (code.json, user.json).
• api.md & install.md – API documentation and install instructions.
Insights from README
• Core features: Chinese UI, no-pain install, automated workflows, Discord login, admin backend, exposed Admin API.
• Dependencies: Flask, Jinja2, TailwindCSS, Alpine.js, Chart.js.
Details
• Admin API as a separate external-facing interface.
• Common endpoints (e.g., /login → Discord OAuth flow, /shop → ptero_api calls, /admin/setting → JSON store).