4
0
Fork
You've already forked knbn
0
No description
  • Go 100%
2024年02月26日 19:02:32 -05:00
cmd mount the htmx handler for the html fragments 2024年02月25日 10:08:35 -05:00
pkg handlers and templets for get/put list titles 2024年02月25日 10:08:19 -05:00
templs handlers and templets for get/put list titles 2024年02月25日 10:08:19 -05:00
testdata/db accounts and cookies 2024年02月24日 20:09:07 -05:00
.gitignore ignore database files and docs for seeding usage 2024年02月24日 14:45:32 -05:00
go.mod go mod tidy 2024年02月24日 20:14:23 -05:00
go.sum go mod tidy 2024年02月24日 20:14:23 -05:00
README.md ignore database files and docs for seeding usage 2024年02月24日 14:45:32 -05:00

knbn

No bullshit 1-file kanban boards.

Developing

You'll need the following tools:

If you modify any of the *.templ files in templs then you need to generate the new *.go files for them before compiling.

> templ generate
Processing path: /usr/local/src/limeleaf-coop/knbn
Generating production code: /usr/local/src/limeleaf-coop/knbn
(✓) Generated code for "/usr/local/src/limeleaf-coop/knbn/templs/boards.templ" in 2.674596ms
(✓) Generated code for "/usr/local/src/limeleaf-coop/knbn/templs/layout.templ" in 4.892115ms
(✓) Generated code for 2 templates with 0 errors in 5.085521ms

Running

> go run ./cmd/main.go

Open http://localhost:8080

Seeding Database

If you want to seed the database with some data you can run:

> go run ./cmd/main.go -seed-data-dir ./testdata/db

Feel free to add more .json files for more data. To re-seed a new databse just delete the database file on disk first or else you'll see key contraint errors.