Guides to building with Go and React
Each of these answers one question properly, in plain Go and React, with code you can run whether or not you use Grit. Where Grit does the same thing in one command, that comes at the end, as the payoff rather than the pitch.
Starting out
Nothing assumed beyond knowing JavaScript. Every step has something you can check before moving on.
Build your first full-stack app with Go and React
Start to finish in about thirty minutes, with a checkpoint you can verify after every step.
25 minRead
Fix the errors you hit starting a Go and Docker project
One section per error message, with the cause and the fix for Windows, macOS and Linux.
14 minRead
Run Postgres, Redis and MinIO locally with Docker Compose
What a container actually is, the compose file line by line, and the three things that go wrong on Windows.
16 minRead
Connect a Next.js frontend to a Go backend
CORS, cookies and SameSite: why the login works in Postman and the browser throws the request away.
18 minRead
JWT authentication in Go, explained
Access tokens, refresh tokens, HttpOnly cookies, and the four mistakes that make an auth system fake.
20 minRead
GORM relationships: belongs to, has many, many to many
Each relation drawn, the struct that produces it, and the SQL GORM writes for it.
18 minRead
Build a REST API in Go with Gin
Routing, JSON binding, validation and error responses, written out by hand before anything generates them.
20 minRead
Deploy a Go and React app to a cheap VPS with HTTPS
What a VPS, systemd and a reverse proxy are, DNS, certificates, and the first deploy end to end.
22 minRead
Upload files and images in Go to S3, R2 or MinIO
The presigned flow drawn out, why the browser uploads directly, and image renditions.
17 minRead
Build an admin dashboard without writing it from scratch
Tables, forms, filters and widgets, and what to declare rather than build.
15 minRead
Roles and permissions explained, with Go examples
What RBAC is in plain English, where the check belongs, and the row rule people miss.
14 minRead
Background jobs in Go: send email without slowing the API
Why a queue exists, what a retry costs, and testing mail locally before it is real.
16 minRead
Go or Node.js for your backend: an honest comparison
Where each one genuinely wins, what Go costs a JavaScript developer, and how to learn it fast.
15 minRead
Build a SaaS MVP in a weekend with Go and React
A two-day plan: auth, tenants, billing, a landing page and a deploy, in that order.
18 minRead
Use an AI coding assistant to build a Go app properly
What to give it before it writes anything, the prompts that work, and how to review what comes back.
16 minRead
Production concerns
The decisions that are expensive to get wrong, with the trade-offs stated rather than one answer asserted.
Go project structure for production APIs
Handler, service, repository: the layout, the trade-offs against hexagonal and DDD, and where transactions live.
20 minRead
The transactional outbox pattern in Go with Postgres
Why dual writes lose events, a minimal outbox, idempotency keys and parked failures.
18 minRead
Sagas in Go: compensating transactions without a workflow engine
Do and undo steps, persisted state, and the point at which you should reach for Temporal.
18 minRead
Multi-tenant SaaS in Go: row, schema or database per tenant
A decision matrix, Postgres RLS against application scoping, and the cross-tenant leak test.
22 minRead
Authorization in Go: policies answer 403, row rules answer 404
IDOR, enumeration, and why an out-of-scope row must be indistinguishable from a missing one.
18 minRead
Tamper-evident audit logs with hash chains in Postgres
Chaining, verification, pruning without breaking the chain, and what auditors ask for.
17 minRead
Zero-downtime Postgres migrations with GORM
Expand and contract, why AutoMigrate stops at development, and the DDL that takes a lock.
19 minRead
Caching in Go: cache-aside, jittered TTLs and stampede protection
The thundering herd, singleflight, jitter, and invalidation you can reason about.
17 minRead
Money in Go: minor units, ISO 4217 and gap-free invoice numbers
Why float is wrong, what a zero-decimal currency breaks, and row-locked sequences.
16 minRead
Running Go behind a load balancer
A stateless checklist, WebSockets over a Redis backplane, cron on exactly one node, read replicas.
20 minRead
Webhooks in Go: HMAC verification, idempotency and replay protection
Constant-time compare, timestamp tolerance, a dedupe table, and retries that are safe.
17 minRead
End-to-end type safety between Go and TypeScript without GraphQL
tygo, OpenAPI codegen and Connect compared, and what a generated Zod schema buys you.
18 minRead
Choosing a Go full-stack approach in 2026
PocketBase, Encore, Goravel, Buffalo and Grit: runtime backend, infrastructure from code, or generated code.
19 minRead
Securing a Go API against the OWASP Top 10
Each risk, the Go code that addresses it, and the check that keeps it addressed in CI.
24 minRead
Move an existing Gin and GORM API into Grit
One resource at a time, with both halves running, and a point at every step where you can stop.
18 minRead
Adding AI to a Go app: streaming, pgvector and RAG
Server-sent events, an embeddings job, hybrid search, and where the cost actually goes.
20 minRead
Looking for the reference instead?
These pages teach a topic. For how a specific part of Grit behaves, with every flag and field type, read the documentation. For the full applications built with it, start with the tutorials.
