Get Started with eliba
A quick guide to setting up eliba in your development workflow. Perfect for beginners and experienced developers.
1. Setup Your Development Environment
Prerequisites
- Node.js v18+
- WASM enabled runtime
- WASI enabled environment
Installation
# Using NPM
npm install -g @eliba/cli
# Binary
curl -L https://eliba.com/cli/v3.1.7/eliba_cli.tar.gz | tar -xz -C /usr/local/bin/
Verify checksums using sah256sum
with hashes from our
release notes.
2. Command Line Interface
Initialize Project
eliba init myproject
cd myproject
npm install
Run Locally
eliba serve
# or for development
npm run dev
3. Web Development
Web App Quickstart
import { elibaApp } from '@eliba/web-sdk';
eliba.configure({
appId: 'your-app-id',
endpoint: 'https://api.eliba.com'
});
Replace your-app-id
with the one generated during project initialization.
First Web Request
fetch('https://api.eliba.com/webhook', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_KEY'
},
body: JSON.stringify({
event: 'startup',
data: {}
})
});
Common Issues
Error: EACCES
Install with elevated permissions:
sudo npm install -g @eliba/cli