Skip to content

apalis-dev/website

Repository files navigation

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

About

The documentation and blog site for apalis

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors