Coder Social home page Coder Social logo

j4ng5y / yew-wasm-pack-minimal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yewstack/yew-wasm-pack-minimal

0.0 2.0 0.0 39 KB

A minimal template for starting a Yew project using wasm-bindgen and wasm-pack

License: Apache License 2.0

HTML 13.10% JavaScript 37.95% Rust 48.95%

yew-wasm-pack-minimal's Introduction

About

This template demonstrates the minimum code and tooling necessary for a frontend web app with simple deployable artifacts consisting of one HTML file, one JavaScript file, and one WebAssembly file, using Yew, wasm-bindgen, and wasm-pack.

Note: yew-wasm-pack-template is the full-featured counterpart to this template, integrating many common web technologies.

Usage

1) Install Rust, wasm-pack, miniserve, cargo-generate, and node/npm

  • Rust: https://rustup.rs
  • wasm-pack: cargo install wasm-pack
  • miniserve: cargo +nightly install miniserve
  • cargo-generate cargo install cargo-generate
  • node/npm: https://nodejs.org/

2) Generate New Project

  • Use cargo generate --git https://github.com/j4ng5y/yew-wasm-pack-minimal to generate your new project.

3) Install the node dependencies

  • Once in your new repository, run npm install, this will install rollup and the associated plugins.

4) Run

  • Simply run rollup -c to run the dev-mode application.

5) Deploy

  • Access your generated build artifacts, bundle.js and yew_wasm_pack_minimal_bg.wasm, in ./pkg from your project's root directory.

yew-wasm-pack-minimal's People

Contributors

j4ng5y avatar jesperaxelsson avatar jstarry avatar kellytk avatar srounce avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.