https://github.com/bots-garden/starter-kli
https://github.com/bots-garden/starter-kli
couchbase couchbase-lite extism wasm
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bots-garden/starter-kli
- Owner: bots-garden
- Created: 2023-07-26T15:00:52.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-29T16:36:35.000Z (almost 3 years ago)
- Last Synced: 2025-01-21T15:31:54.125Z (over 1 year ago)
- Topics: couchbase, couchbase-lite, extism, wasm
- Language: Kotlin
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Install Extism
```bash
# -----------------------
# Install Extism
# -----------------------
sudo apt-get update -y
sudo apt-get install -y pkg-config
sudo apt install python3-pip -y
pip3 install poetry
pip3 install git+https://github.com/extism/cli
echo "export EXTISM_HOME=\"\$HOME/.local\"" >> ${HOME}/.bashrc
echo "export PATH=\"\$EXTISM_HOME/bin:\$PATH\"" >> ${HOME}/.bashrc
source ${HOME}/.bashrc
extism --prefix=/usr/local install latest
pip3 install extism
```
## Run the demo
```bash
LD_LIBRARY_PATH="/usr/local/lib" \
WASM_FILE="/home/ubuntu/kotlin-wasm-runner/starter-kli/go-handler-plugin/simple.wasm" \
mvn clean compile exec:java
```
## Couchbase Lite
The database file will be automatically created in user's home starter-kli_config directory.
Couchbase lite is a native library and as such expect some libraries to be available on your system, in specific version.