Template repo for user registration and signin based on GoTTH (Go, Tailwind, Templ, Htmx) stack
brew install go-task
task install-dev-toolstailwindcss -i templates/css/app.css -o public/styles.css --watch &
templ generate --watch &
air &...or run each command in a dedicated terminal window
- 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
- [ ]