Skip to content

The cargo-generate template for the Laplace local-firs web applications (lapps)

License

Notifications You must be signed in to change notification settings

noogen-projects/lapp-template

Repository files navigation

{{project-name}}

{{project-description}}.

Prerequisites

To build this project, you need to have the following tools installed:

For installing these tools, execute the following commands:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env

cargo install --force cargo-make wasm-bindgen-cli

In addition, you need to install the required toolchains and compilation targets:

rustup toolchain install stable nightly
rustup target add wasm32-unknown-unknown --toolchain stable
rustup target add wasm32-wasi --toolchain nightly

To run the application, you need to have laplace installed. If you don't have it, you can install it with the following command:

cargo install --git https://github.com/noogen-projects/laplace laplace_server

Optionally, for the client wasm hot-reloading, you also need to have a cargo-watch plugin installed:

cargo install cargo-watch

Building and running

  1. First, clone this project repository and enter the project root directory.

  2. Then, build the project with cargo-make:

cargo make all

Or for a debug build, use the following command:

cargo make -p debug all

The built lapp will appear in the directory target/dist/{{crate_name}}/.

  1. Finally, run the project with laplace_server:
laplace_server

And open the browser to http://127.0.0.1:8080/{{crate_name}}.

Optionally, for hot-reloading wasm-client, you can use the following command in the separate terminal:

cargo make watch

About

The cargo-generate template for the Laplace local-firs web applications (lapps)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published