example-projects icon indicating copy to clipboard operation
example-projects copied to clipboard

TodoMVC: How to build and run?

Open malaire opened this issue 3 years ago • 2 comments

TodoMVC doesn't have any documentation of how to build and run the example.

Simple cargo run fails with following error on Debian 11:

panicked at 'cannot call wasm-bindgen imported functions on non-wasm targets', /home/malaire/.cargo/registry/src/localhost-86e39b43d7f3e3e9/js-sys-0.3.59/src/lib.rs:5365:1

malaire avatar Aug 20 '22 07:08 malaire

I assume you followed the getting started guide for web and therefore tried to use trunk serve after setting up your toolchain? Will try this example myself in a moment.

AiyionPrime avatar Oct 04 '22 06:10 AiyionPrime

Did work: https://dioxuslabs.com/reference/platforms/web#getting-started-web Good luck!

AiyionPrime avatar Oct 04 '22 06:10 AiyionPrime

Primary README contains this phrase:

Each project has information on how to build/deploy.

Yet I don't see such information in TodoMVC's README.

https://dioxuslabs.com/reference/platforms/web#getting-started-web

Error 404 Page not found

vi avatar May 23 '23 23:05 vi

The doc seems to be here https://dioxuslabs.com/docs/0.3/guide/en/getting_started/web.html

$ cd todomvc
$ dioxus serve
...
Dioxus @ v0.1.5 [20:19:54]

        > Local : http://localhost:8080/
        > NetWork : http://xxx:8080/

        > Profile : Debug
        > Hot Reload : Normal
        > Index Template : Custom [index.html]
        > URL Rewrite [index_on_404] : True

        > Build Time Use : 3937 millis

[INFO] A perfect compilation!

It compiles, but the page is blank.

zjp-CN avatar Jun 11 '23 12:06 zjp-CN

I had the same issue removing the index.html helped

hpfmn avatar Jul 12 '23 14:07 hpfmn

https://dioxuslabs.com/reference/platforms/web#getting-started-web is 404.

image

The TodoMVC docs folder doesnt display in the browser.

image

Just a simple markdown based instructions would be much easier.

magick93 avatar Nov 13 '23 20:11 magick93

https://dioxuslabs.com/reference/platforms/web#getting-started-web is 404.

image

The TodoMVC docs folder doesnt display in the browser.

image

Just a simple markdown based instructions would be much easier.

Where did you find that link? It should now be https://dioxuslabs.com/learn/0.4/getting_started/wasm

ealmloff avatar Nov 13 '23 21:11 ealmloff

The docs are all markdown that lives here: https://github.com/DioxusLabs/docsite/tree/master/docs-src/0.4. If you prefer raw markdown, you can use that folder directly

ealmloff avatar Nov 13 '23 21:11 ealmloff

Thanks @ealmloff

I've read the getting started guides on https://dioxuslabs.com/learn/0.4/getting_started/, now I want to review some examples.

Maybe adding the following to the TodoMVC readme could help:

cargo install dioxus-cli
dx serve

magick93 avatar Nov 13 '23 21:11 magick93

Thanks @ealmloff

I've read the getting started guides on https://dioxuslabs.com/learn/0.4/getting_started/, now I want to review some examples.

Maybe adding the following to the TodoMVC readme could help:

cargo install dioxus-cli
dx serve

Adding something to any/all of the examples about how to run them would be great!

ealmloff avatar Nov 13 '23 23:11 ealmloff