https://github.com/alterx/gun-preact-todoapp
https://github.com/alterx/gun-preact-todoapp
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alterx/gun-preact-todoapp
- Owner: alterx
- License: mit
- Created: 2020-04-23T21:51:40.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-03T06:18:16.000Z (almost 2 years ago)
- Last Synced: 2025-02-13T16:44:05.898Z (3 months ago)
- Language: JavaScript
- Size: 90.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Gun TODO list
This is a TODO list example inspired by https://github.com/thrownness/decentralized-todo-app and built with Preact + htm + hooks.
This project uses the official TODO MVC CSS [https://github.com/tastejs/todomvc-app-css]htm provides a JSX-like syntax but it uses template literals and is used here in conjunction with Preact to avoid the build step. This project can also be easily converted to React and JSX but for the sake of simplicity I'm using the aforementioned tools.
This project also uses modern ES6+ syntax and ESM modules, so it should be run in evergreen browsers (Chrome, Edge or Firefox should all work) or transpiled (out of scope).
# Running the project
Use `pnpm`, `npm` or `yarn` to install the dependencies:
```
$ npm i
$ cd gun-preact-todoapp
$ npm start
```Then visit [localhost:5151](http://localhost:5151) in your browser.
## License
Licensed under [MIT](https://github.com/alterx/gun-preact-todoapp/blob/master/LICENSE.md).