Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 compiler

Setup:

- `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` API

Deployment:

- 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`.