Demo/starter project using Reason + React and Rust + Rocket
Featuring:
This project was primarily created to combine some new technologies in order to see what a more complete project could look like and how the individual parts would work together. Specifics:
cargo-watch
if you want to use the yarn develop
scriptrustup override set nightly
yarn install
yarn develop
yarn develop
will run Parcel in watch mode and leverage cargo-watch
to rebuild frontend and backend applications on file change.
yarn build
cargo build --release
The result can be started with:
ROCKET_ENV=production cargo run --release
or your preferred manner.
yarn clean
$FEATURE
. Can it be changed out for $PREFERRED_BUNDLER
?yarn remove parcel-bundler
), add another bundler (e.g. yarn add --dev $PREFERRED_BUNDLER
), and update the scripts
in package.json
to use that bundler.rustup override set stable
). This would require a change from Rocket to something else. See below.Cargo.toml
and code in src
with $PREFERRED_WEB_FRAMEWORK
related goodies.This project is licensed under the MIT License. See LICENSE for more details.