Gofasta Documentation
Gofasta is a batteries-included Go web framework with a powerful CLI for scaffolding projects and generating code. This documentation covers everything you need to build, deploy, and maintain Go backend services with Gofasta.
Getting Started
New to Gofasta? Start here:
- Introduction — What Gofasta is and why it exists
- Installation — Install the CLI tool (3 options)
- Quick Start — Create a project and generate your first resource in 5 minutes
- Project Structure — Understand the generated directory layout
Guides
In-depth walkthroughs for common tasks:
- REST API — Build and customize REST endpoints
- GraphQL — Add GraphQL schemas and resolvers
- Database & Migrations — Manage your database schema
- Authentication — JWT tokens and RBAC with Casbin
- Code Generation — Use the CLI to generate models, services, controllers, and more
- Background Jobs — Cron scheduling and async task queues
- Deployment — Deploy with Docker, Kubernetes, or on a VPS
CLI Reference
Every command the Gofasta CLI provides:
- gofasta new — Create a new project
- gofasta generate — Generate code (scaffold, model, service, etc.)
- gofasta migrate — Run database migrations
- gofasta dev — Start the development server
Framework API
Package-by-package reference for the github.com/gofastadev/gofasta/pkg/* library:
- Config — Configuration loading and database setup
- Auth — JWT and RBAC
- Middleware — HTTP middleware collection
- Cache — In-memory and Redis caching
- View all 27 packages →
Last updated on