Getting Started
Installation
Get up and running with Grit in minutes. Install the CLI, choose your architecture, and scaffold a production-ready full-stack application.
System Requirements
| Tool | Min Version |
|---|---|
| Go | 1.21+ |
| Node.js | 18+ |
| pnpm | 8+ |
| Docker | Latest |
Install the Grit CLI
Install Grit
Install the Grit CLI globally using go install. This gives you the grit command anywhere on your system.
go install github.com/MUKE-coder/grit/v3/cmd/grit@latest
Create your project
Run grit new and follow the interactive prompts to select your architecture and frontend framework.
grit new my-app? Select architecture:> Triple — Web + Admin + API (Turborepo)Double — Web + API (Turborepo)Single — Go API + embedded React SPAAPI Only — Go API (no frontend)Mobile — API + Expo (React Native)? Select frontend framework:> Next.js — SSR, SEO, App RouterTanStack Router — Vite, fast builds, small bundle
Start infrastructure
Start PostgreSQL, Redis, MinIO, and Mailhog with Docker Compose. These services are pre-configured in the generated docker-compose.yml.
cd my-appdocker compose up -d
Install dependencies & start
Install frontend dependencies and start all development servers. The Go API runs on :8080, web app on :3000, and admin on :3001.
pnpm installpnpm dev
Architecture shortcuts
Skip the interactive prompts with flags:
# Triple (default) with Next.jsgrit new my-app --triple --next# Single app with TanStack Router (Vite)grit new my-app --single --vite# Double (web + api) with TanStack Routergrit new my-app --double --vite# API only (no frontend)grit new my-app --api# Desktop app (Wails)grit new-desktop my-app
Default services
localhost:8080Backend server
localhost:3000Next.js or TanStack
localhost:3001Resource management
localhost:8080/docsAuto-generated
localhost:8080/studioDatabase browser
localhost:8025Email testing