Grit
Full-stack meta-framework that fuses a Go backend (Gin + GORM) with a Next.js + React frontend in a single monorepo. One CLI command scaffolds JWT auth, a Filament-like admin panel, GORM Studio, Docker Compose (PostgreSQL, Redis, MinIO, Mailhog), file storage, email, background jobs, cron, caching, and AI integration. Includes a code generator that creates Go models, API handlers, React Query hooks, Zod schemas, and admin pages all at once.
What's Included
Installation
$ go install github.com/MUKE-coder/grit/cmd/grit@latestHow to Use
Install the CLI
Install the Grit CLI globally using Go. Requires Go to be installed on your system.
go install github.com/MUKE-coder/grit/cmd/grit@latestScaffold a new project
Create a full monorepo with Go API, Next.js frontend, admin panel, and shared packages. Use --api for backend only.
grit new myappStart infrastructure & dev servers
Launch PostgreSQL, Redis, MinIO, and Mailhog via Docker, then start the Go API and Next.js frontend.
cd myapp
docker compose up -d
cd apps/api && go mod tidy && go run cmd/server/main.go
# In another terminal:
cd myapp && pnpm install && cd apps/web && pnpm devGenerate a resource
Use the code generator to scaffold a full-stack CRUD resource — Go model, API handler, React Query hooks, Zod schema, and admin page.
grit generate resource Post --fields "title:string,content:text,published:bool"Free to use · MIT License