Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kanarus/ohkami-yew-todo


https://github.com/kanarus/ohkami-yew-todo

Last synced: 19 days ago
JSON representation

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.git

cd ./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.sql

npx 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.