Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laurci/unit
Serverless runtime for real-time apps
https://github.com/laurci/unit
Last synced: 30 days ago
JSON representation
Serverless runtime for real-time apps
- Host: GitHub
- URL: https://github.com/laurci/unit
- Owner: laurci
- Created: 2023-10-15T14:19:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-20T07:43:26.000Z (about 1 year ago)
- Last Synced: 2024-10-30T06:27:13.281Z (3 months ago)
- Language: Rust
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# unit
Learn more about this repository [here](https://laurci.notion.site/XDay-Hackathon-Log-087f6778a60245f58a4e0d9e2bea3b95?pvs=4).
## Getting started
Prerequisites:
- Rust
- `cargo-wasix`
- `protoc` protobuf compilerSetup:
- `cargo install --git https://github.com/laurci/unit.git unit-cli`
- `unit-cli init `
- `cd `
- Edit the values in `.env` to point to your `unit` APIDeployment:
- Build the app: `cargo wasix build --release`
- Deploy to your configured unit instance: `unit-cli deploy ./target/wasm32-wasmer-wasi/release/.wasm`## Building from source
After building the CLI, it's convenient to symlink it to `/usr/local/bin/unit` to make it accessible to the system: `sudo ln -s $PWD/target/release/unit-cli /usr/local/bin/unit`.