No description
internal | ||
static | ||
templates | ||
.air.toml | ||
.gitginore | ||
.gitignore | ||
go.mod | ||
go.sum | ||
input.css | ||
main.go | ||
README.md | ||
tailwind.config.js |
Todo App with GO and HTMX
Goal: make a todo app with minimal reliance on other libraries and frameworks.
I'll assume that it is a single user app so I do not have to worry about concurrent access, high throughput, etc..
Plan day 1
- create Go webserver
- create landing page
- import HTMX code
- display todo list
- add tailwind CSS
- show todo list
- let todos be marked completed
- remove todos
- add new todo with form
- persist todos in redis
- spruce up
Plan day 2
make it use only battery included features
i.e. replace redis with an event driven approach
- modularize app
- replace redis with json stream
- use hashmap for fast individual access
- cache data to avoid reading each time
- create event store
- make events
- implement event store