Help us shape the future of Go! Take the 2026 Go Developer Survey

crud

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 24 Imported by: 0

README

CRUD example (real app)

This example demonstrates CRUD routes, sessions, form auth, and migrations.

Prerequisites

  • PostgreSQL running locally
  • Go 1.23 or newer

Setup

export BEBO_DATABASE_URL="postgres://postgres:postgres@localhost:5432/bebo_crud?sslmode=disable"
export BEBO_SESSION_KEY="replace-with-32-byte-random-value"

Run migrations

go run ./examples/crud -migrate

Start the app

go run ./examples/crud

Routes

  • Web: /signup, /login, /notes
  • API: /api/notes
  • Health: /health, /ready

Production runbook

See examples/crud/RUNBOOK.md.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL