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 seed
to populate data. - run
deno task start
to start server - go to localhost:8000
- Use
/public
to edit/addhtml
,css
, andjs
client files - Use
mod.js
,/models
,/services
,/controllers
, and/routes
to 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)
-
GET
operations -
PUT
operations -
POST
operations -
PATCH
operations? -
DELETE
operations
-
- Basic router
- Use a proper html parser
- Try using hono or oak