Learning Pathbeginner

Building a Go API

From `grit new --api` to a deployed, secured, observable production API.

Time

~2 h

Lessons

19

Chapters

6

Assignments

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

Modeling with GORM — relations, constraints, soft-deletes
JWT auth with refresh tokens + OAuth2 + 2FA
Background jobs with Asynq
File storage with S3 / R2
Transactional mail with Resend
Observability with Pulse + tamper-evident audit log
Deploying to a VPS with grit deploy

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.