Moyi Admin is being redesigned as a Go-based AI-native data operations workspace.
The previous Hyperf/PHP implementation has been archived in legacy-hyperf/ for comparison and migration reference.
Start here:
Run the API server:
go run ./cmd/serverThe default API address is :9752. Override it with MOYI_HTTP_ADDR when needed.
MOYI_ADMIN_ENTRY is the pre-initialization install entry. After setup succeeds, the real admin entry is randomly generated and stored in data/install_state.json.
First-time setup:
http://127.0.0.1:9752/
When the system is not initialized, the homepage displays the setup wizard. The wizard creates the site name, first super admin account, AI provider configuration, and a random admin login entry. Initialization state is stored in data/install_state.json by default.
It also records the metadata database configuration. SQLite is the default local option; MySQL and PostgreSQL are available in the form. Use the database and AI check buttons before submitting the setup form.
Run with hot reload:
airInstall Air if it is not available locally:
go install github.com/air-verse/air@latestUseful endpoints:
GET /GET /moyi-7k3x9-admin/installbefore initializationGET /moyi-<random>-admin/loginafter initializationPOST /api/install/check-databasePOST /api/install/check-aiGET /healthzGET /api/healthGET /api/version
Configuration is read from environment variables. See .env.example for the initial options.