Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.19 KB

File metadata and controls

66 lines (45 loc) · 1.19 KB

Apalis Website and Documentation

Website

View the deployed project: Website

Local Installation

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

Development

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?;
}