Skip to content

fgeck/gotth-sqlite

Repository files navigation

gotth-sqlite

Template repo for user registration and signin based on GoTTH (Go, Tailwind, Templ, Htmx) stack

Prerequisites

brew install go-task
task install-dev-tools

How to run for Development

tailwindcss -i templates/css/app.css -o public/styles.css --watch &
templ generate --watch &
air &

...or run each command in a dedicated terminal window

Tools used

ToDo

  • Echo Server renders templ templates
  • Add Tailwind to templates
  • Add htmx to templates
  • Add DaisyUI?
  • On startup register admin user based on env
  • build register handler for storing in db
    • password salting and hashing before storing
    • security related config - introduce config from ENV
  • build login handler emitting JWT with proper claims
    • on successful login set cookie with JWT in HTTP response
  • middleware for checking JWT from cookie
  • middleware for asserting claims from JWT as userId and Role
  • Loggingframework like logrus
  • Dependency Injection Framework?
  • github actions for: fmt, golangci lint, build, unittest, integrationtest
  • [ ]

About

Template repo for GoTTH stack and SQLite as Database. Registration and Jwt Auth implemented

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published