Skip to content

Latest commit

 

History

History
66 lines (49 loc) · 1.93 KB

README.md

File metadata and controls

66 lines (49 loc) · 1.93 KB

hexno

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.

Dependencies

Playground

Getting started

  1. run deno task seed to populate data.
  2. run deno task start to start server
  3. go to localhost:8000
  4. Use /public to edit/add html, css, and js client files
  5. Use mod.js, /models, /services, /controllers, and /routes to update the server

Deno

task description
seed Generate CSV data file
start Start server on localhost, port 8000. Uses --allow-net, --allow-read, and --watch flags

To do

v0.1.0

  • 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

v0.1.0

  • Use a proper html parser
  • Try using hono or oak

Resources