Git Product home page Git Product logo

xenolite's Introduction

Xenolite

This is a base project setup for React and WebAssembly using Rust and Javascript.


Setup :

The project requires the following tools:

  • Rust
  • Cargo
  • wasm-pack
  • NodeJs

To set up the project after git clone run:

npm run setup

To install new node packages run:

npm run install <command>

Where <command> is the regular command after npm install. It is recommended to use this script to install new node modules as it automatically links the wasm package after installation and does not require to run npm run link afterwards.

To build the package there are three commands:

// build all wasm and react packages in development mode
npm run build 

// builds only react bundle in development mode
npm run build-react 

// builds only wasm package in development mode
npm run build-wasm

// builds all wasm and react packages in production mode
npm run build-prod 

To link the wasm package to node modules:

npm run link-wasm

To serve react application using webpack dev server:

npm run serve

Includes Batteries :

Rust :

  • wasm-bindgen
  • console_error_panic_hook
  • wee_alloc

Node :

  • React
  • React Router Dom
  • Styled Components
  • PropTypes
  • Babel
  • File Loader
  • HTML Webpack Plugin
  • Webpack
  • Webpack Dev Server

xenolite's People

Watchers

James Cloos 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.