https://github.com/rust-dd/tryrust.org
An interactive Rust tutorial in the browser
https://github.com/rust-dd/tryrust.org
axum learning leptos rust tutorial
Last synced: 9 months ago
JSON representation
An interactive Rust tutorial in the browser
- Host: GitHub
- URL: https://github.com/rust-dd/tryrust.org
- Owner: rust-dd
- License: apache-2.0
- Created: 2024-07-02T19:58:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-29T21:42:53.000Z (over 1 year ago)
- Last Synced: 2024-08-30T01:00:38.481Z (over 1 year ago)
- Topics: axum, learning, leptos, rust, tutorial
- Language: Rust
- Homepage: https://tryrust.org
- Size: 540 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tryrust.org

Welcome to the interactive tutorial project, [tryrust.org](https://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.
## Running the project
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:
```bash
npm install
npx tailwindcss -i input.css -o ./style/output.css --watch
```
Next, run the Leptos development server to watch changes and automatically reload:
```bash
cargo leptos watch
```
## Compiling for Release
```bash
cargo leptos build --release
```
Will generate your server binary in target/server/release and the site package in target/site
## Docker
For containerizing the application, build the Docker image with the following command:
```bash
docker build . -t tryrust
```
Once the image is built, run it with:
```bash
docker run -p8080:8080 tryrust
```
## Inspiration
The site was inspired by [tryclojure.org](https://tryclojure.org) and [tryhaskell.org](https://tryhaskell.org).