snippetbox

module
v0.0.0-...-2479739 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT

README

Snippetbox

Example app from the book Let's Go.

  • Run mysql with docker compose up -d.
  • Setup up database with ./scripts/setup_db.sh.
  • Generate TLS cert for localhost with ./scripts/generate_cert.sh localhost.
  • Start the server with go run ./cmd/web.
  • Open https://localhost:4000 (and accept self signed certificate)

Ideas / TODO

  • Implement PRG pattern for invalid forms (session pop string of state struct JSON for example)

Directories

Path Synopsis
cmd
web
internal

Jump to

Keyboard shortcuts

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