Quick Start
Install the CLI
Option 1: go install (recommended)
bash
go install github.com/gocronx/gocronx-scaffold/cmd/gocronx@latestOption 2: Install script
bash
curl -fsSL https://raw.githubusercontent.com/gocronx/gocronx-scaffold/main/install.sh | bashCreate a Project
Interactive mode
bash
gocronx initThe wizard will ask for:
- Project name
- Go module path
- Database type (SQLite / MySQL / PostgreSQL)
- Whether to enable Redis
Quick mode (CI-friendly)
bash
gocronx init myproject --module github.com/yourname/myproject --db sqlite --redisRun the Project
bash
cd myproject
make setup # Install Go + frontend dependencies
make dev # Start backend (:8080) + frontend (:3000)Open http://localhost:3000 → complete the onboard wizard → done!
What Happens at First Launch
- The frontend detects the app is not initialized and redirects to
/onboard - You fill in: project name, admin credentials, database config, Redis toggle
- The backend writes
config.yaml, creates database tables, and sets up the admin user - You're redirected to the login page — use the admin credentials you just created
Project Commands
| Command | Description |
|---|---|
make setup | Install all dependencies |
make dev | Start dev server (hot reload) |
make build | Production build (Go binary + Vue dist) |
make clean | Remove build artifacts |