View the deployed project: Website
This project requires cargo and node.js to be installed.
Clone the project:
git clone [email protected]:apalis-dev/website.git
Install dependencies:
yarn
Run dev server:
yarn dev
This project includes a way to build code examples to ensure that they can compile eg:
\```rust name="push" mode="inline"
let task = Email {
recipient: "[email protected]".to_string(),
message: "Welcome to our new service".to_string()
};
storage.push(task).await?;
\```
\```rust fileName="main.rs" mode="compile"
use apalis::prelude::*;
#[tokio::main]
async fn main() -> Result<(), BoxDynError> {
let mut storage = MemoryStorage::new();
// [!code inline:push]
}
\```
This would generate:
use apalis::prelude::*;
#[tokio::main]
async fn main() -> Result<(), BoxDynError> {
let mut storage = MemoryStorage::new();
let task = Email {
recipient: "[email protected]".to_string(),
message: "Welcome to our new service".to_string()
};
storage.push(task).await?;
}