Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/syarul/todomvc-adonisjs-react-htmx-_hyperscript
TodoMVC build with AdonisJS, React, HTMX & _HYPERSCRIPT
https://github.com/syarul/todomvc-adonisjs-react-htmx-_hyperscript
adonisjs adonisjs-framework hateoas htmx hyperscript reactjs todomvc
Last synced: about 1 month ago
JSON representation
TodoMVC build with AdonisJS, React, HTMX & _HYPERSCRIPT
- Host: GitHub
- URL: https://github.com/syarul/todomvc-adonisjs-react-htmx-_hyperscript
- Owner: syarul
- License: apache-2.0
- Created: 2024-08-04T14:25:58.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-12T13:08:50.000Z (4 months ago)
- Last Synced: 2024-08-14T02:14:30.387Z (4 months ago)
- Topics: adonisjs, adonisjs-framework, hateoas, htmx, hyperscript, reactjs, todomvc
- Language: TypeScript
- Homepage:
- Size: 392 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-htmx - TodoMVC App - TodoMVC App built with `AdonisJS`, `htmx` and `_hyperscript` following the standard AdonisJS guidelines for server framework (Examples by Back-end / AdonisJS)
README
ooooo ooooo ooooooooooooo ooo ooooo ooooooo ooooo
`888' `888' 8' 888 `8 `88. .888' `8888 d8'
888 888 888 888b d'888 Y888..8P
888ooooo888 888 8 Y88. .P 888 `8888'
888 888 888 8 `888' 888 .8PY888.
888 888 888 8 Y 888 d8' `888b
o888o o888o o888o o8o o888o o888o o88888o
===========================================================
Build with AdonisJS, React, HTMX & _HYPERSCRIPT
[![AdonisJS Build and Cypress Tests](https://github.com/syarul/todomvc-adonisjs-react-htmx-_hyperscript/actions/workflows/adonisjs.yml/badge.svg)](https://github.com/syarul/todomvc-adonisjs-react-htmx-_hyperscript/actions/workflows/adonisjs.yml)| HTMX TodoMVC | Link |
| ---------------------- | ------------------------------------------------ |
| Go, Templ | [🌄](https://github.com/syarul/todomvc-go-templ-htmx-_hyperscript)|
| Rust, Astra, Maud | [🌠](https://github.com/syarul/todomvc-rust-astra-maud-htmx-_hyperscript)|
| ExpressJS, Typescript, React | [✈️](https://github.com/syarul/htmx-todomvc)|
| AdonisJS, Typescript, React | [🎡](https://github.com/syarul/todomvc-adonisjs-react-htmx-_hyperscript)|
| Lua, Luasocket | [⛵](https://github.com/syarul/todomvc-lua-luasocket-htmx-_hyperscript)|### E2E Testing
https://github.com/syarul/todomvc-adonisjs-react-htmx-_hyperscript/assets/2774594/fdcba602-73f2-499b-a106-152569d37e80
Emulating the functionalities of modern frameworks which is base on React TodoMVC. This demonstration serves to showcase that HTMX, when paired with _hyperscript, can replicate if not all the behaviors typically associated with most modern client framework with minimum needs to write javascript.
### Usage
- use node v21 or newer
- run `npm install`
- copy env `cp .env.example .env`
- run `npm run dev`
- visit `http://localhost:8888`
- alternatively you can compile into executable with `npm run build`
- for e2e testing, run in the root folder `git clone https://github.com/cypress-io/cypress-example-todomvc`
- `cd cypress-example-todomvc`
- `npm install`
- if you need to see the test in browser run `npm run cypress:open`
- for headless test `npm run cypress:run`### Build with
All File structures is following AdonisJS Framework guidelines.
- Initially created with `npm init adonisjs@latest todomvc-adonisjs-react-htmx-_hyperscript -- --kit=api`
- Middleware is added to handle formatting request query with i.e., `node ace make:middleware format`
- Services is added using DI(Dependencies Injection) i.e., `node ace make:service todo`, read more at https://docs.adonisjs.com/guides/concepts/dependency-injection#dependency-injection
- Controller is added with i.e., `node ace make:controller page`
- Session support is added with `node ace add @adonisjs/session`
- Static file support is added with `node ace add @adonisjs/static`
- Resources for React is place at `resources/components`
- Resources for static _hyperscript is place at `public/hs`### HTMX
Visit [https://github.com/rajasegar/awesome-htmx](https://github.com/rajasegar/awesome-htmx) to look for HTMX curated infos###
Todo
- Perf test (consolidate with other langs rust, zig, odin, ocaml, etc+)