Welcome to the interactive tutorial project, tryrust.org, which runs directly in your browser.
Note: We continuously update the number of tutorials. It is still in progress.
If you want to run it locally, execute the commands below.
To get started with running the project locally, you will need to execute the following commands. These commands will help you compile your stylesheets and watch for changes in the project.
First, compile the CSS using TailwindCSS:
npm install
npx tailwindcss -i input.css -o ./style/output.css --watchNext, run the Leptos development server to watch changes and automatically reload:
cargo leptos watchcargo leptos build --releaseWill generate your server binary in target/server/release and the site package in target/site
For containerizing the application, build the Docker image with the following command:
docker build . -t tryrustOnce the image is built, run it with:
docker run -p8080:8080 tryrust The site was inspired by tryclojure.org and tryhaskell.org.
