https://github.com/luissimas/htmx-task-manager
A simple web task manager written using HTMX
https://github.com/luissimas/htmx-task-manager
Last synced: 3 months ago
JSON representation
A simple web task manager written using HTMX
- Host: GitHub
- URL: https://github.com/luissimas/htmx-task-manager
- Owner: luissimas
- Created: 2023-09-02T19:34:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-17T18:52:53.000Z (over 1 year ago)
- Last Synced: 2025-01-02T07:42:48.767Z (5 months ago)
- Language: HTML
- Size: 80.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
#+title:Task manager
This project is a simple task list app made as a study case of Go + HTMX + Tailwind CSS.
The idea is to provide:
- Server-side rendering using Go's builtin [[https://pkg.go.dev/html/template][html/template]] package
- Interactivity/SPA feel using [[https://htmx.org/][HTMX]] + a bit of custom JavaScript
- Styling done via [[https://tailwindcss.com/][Tailwind CSS]] and [[https://daisyui.com/][DaisyUI]]
- Toggle dark/light theme (the choice is persisted in [[https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage][localStorage]])
- A default not found page (try going to [[http://localhost:3000/any-random-uri-that-does-not-really-exist]])
** Getting started
*** Using docker-compose
Run the services using docker-compose.#+begin_src shell
docker compose up
#+end_src
*** Running locally
Install the tailwind dependencies:#+begin_src shell
npm i
#+end_srcCompile the CSS:
#+begin_src shell
make css
#+end_srcInstall the Go server dependencies:
#+begin_src shell
go mod download
#+end_srcRun the Go web server:
#+begin_src shell
make run
#+end_srcAccess the app at [[http://localhost:3000/]].