1 unstable release
Uses new Rust 2024
| 0.2.0 | Sep 16, 2025 |
|---|
#772 in Authentication
175KB
3.5K
SLoC
SaaS Express
Getting Started
Download latest binary for your operating system from https://github.com/saasexpress/saasexpress/releases/latest
saasexpress -c test.yaml
Save to test.yaml a simple graph that creates an API on port 2500, returning static JSON data.
name: sample
nodes:
- id: start
operator: HTTPIn
method: ^(GET)$
routes:
- /hello
- id: translate
operator: MessageTranslator
template: |
{
"message": "Hello " + temp.http_in.query.name,
"data": data,
"action": temp.http_in.method,
}
edges:
- { from: start, to: translate }
Go to: http://localhost:2243/hello
Development
cargo watch -w src -x 'run -- -w'
With tokio console:
RUSTFLAGS="--cfg tokio_unstable" cargo watch -w src -x 'run -- -w'
Tests
cargo test -- --test-threads=1
Or if you want to do development related to the test:
cargo watch -x 'test shell_works -- --test-threads=1 --nocapture'
Dependencies
~75–100MB
~2M SLoC