htmx + deno = ❤️
This repository is a playground to test the htmx library. It has a simple API (built with deno) with htmx operations that respond with html fragments, it uses pokemon data.
- run
deno task seedto populate data. - run
deno task startto start server - go to localhost:8000
- Use
/publicto edit/addhtml,css, andjsclient files - Use
mod.js,/models,/services,/controllers, and/routesto update the server
| task | description |
|---|---|
seed |
Generate CSV data file |
start |
Start server on localhost, port 8000. Uses --allow-net, --allow-read, and --watch flags |
- Web 1.0
- pokemon list (home)
- create pokemon
- read pokemon
- update pokemon
- delete pokemon
- Data API
- pokemon list
- create pokemon
- read pokemon
- update pokemon
- delete pokemon
- Hypermedia API (htmx support)
-
GEToperations -
PUToperations -
POSToperations -
PATCHoperations? -
DELETEoperations
-
- Basic router
- Use a proper html parser
- Try using hono or oak