Building a Go API
From `grit new --api` to a deployed, secured, observable production API.
~2 h
19
6
6
Disable AI suggestions while you learn
This course teaches you to hand-write every line of code. Open VS Code (or your editor of choice) and turn off Copilot, Cursor Tab, Tabnine, Codeium, and any inline AI autocomplete before you start a lesson.
AI mid-completion robs you of the small mistakes that make concepts stick. You'll be a faster, more independent developer at the end of the course if you type every character yourself. Re-enable AI for your real work after â never during a lesson.
Goal of this course: learn, not ship fastest.
What you'll build
A multi-tenant SaaS API with auth, role-based access, file uploads, background jobs, transactional email, and a Pulse + Sentinel admin.
What you'll learn
Course outline
Scaffold + Tour
grit new --api and a deep tour of the Go-only project shape.
Modeling with GORM
Define your data layer the Grit way.
Auth & RBAC
JWT, OAuth2, 2FA, and role-based access.
Batteries: Jobs, Mail, Storage, AI
The included primitives that ship with every Grit API.
Security + Observability
Sentinel WAF + Pulse + audit log â the production safety net.
Deploy
Ship to a VPS with one command.
Prerequisites
- âēCompleted Grit Concepts
- âēComfortable writing a basic Go function
Who this is for
- âēDevs who finished Grit Concepts
- âēBackend devs new to Go but experienced elsewhere
Ready to start?
Lesson 1 takes ~6 minutes. By the end of this hour you'll be writing real code.
