Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanarus/ohkami-yew-todo
https://github.com/kanarus/ohkami-yew-todo
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kanarus/ohkami-yew-todo
- Owner: kanarus
- Created: 2024-05-14T13:06:31.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-18T08:38:44.000Z (5 months ago)
- Last Synced: 2024-10-07T04:19:09.961Z (about 1 month ago)
- Language: Rust
- Size: 1.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ohkami×Yew TODO Demo
## Prerequisites
- Latest Rust toolchain with `wasm32-unknown-unknown` target
- npm
- `trunk` CLI ( installable by `cargo install trunk` )
- `tailwindcss` CLI ( see https://tailwindcss.com/blog/standalone-cli )In addition, `wasm-opt` is recommended to be installed.
## Setup
```sh
git clone https://github.com/kana-rus/ohkami-yew-todo.gitcd ./ohkami-yew-todo
```
```sh
npx wrangler login
```
```sh
npx wrangler d1 create ohkami-yew-todo-db# and edit your wrangler.toml as wrangler.toml.sample
```
```sh
npx wrangler d1 execute ohkami-yew-todo-db --file ./schema.sqlnpx wrangler d1 execute ohkami-yew-todo-db --file ./schema.sql --remote
```If you push the project to your GitHub repo, **You should add `wrangler.toml` into .gitignore**!
## Local dev
```sh
npm run dev
```
```sh
trunk serve --watch src/ui --open
```## Publish
```sh
npm run deploy
```
If you register your workers.dev subdomain at this time, it takes some minutes for DNS records to update and it's good time to take a coffee break.