ELLB Examples
Discover how to build with ELLB using actual code examples from real-world applications.
Getting Started
These examples demonstrate ELLB's infrastructure-as-code capabilities for cloud-native applications.
All commands are using our CLI tool which can be installed via npm install -g ellb
.
Basic Deployment
1-minute Node.js App
// File: ellb.config.js const ellb = require('ellb'); module.exports = ellb.service({ name: 'my-node-app', region: 'us-east', environment: { production: { build: { command: 'npm install && npm run build', image: 'node:lts' }, deploy: { type: 'container', replicas: 3 } } } });
REST API Example
Expose a production-grade REST API with automatic scaling and SSL:
# Initial setup ellb init --template express-typescript ellb deploy --name api-service --region us-east # Access endpoint https://api.example.ellb.run/api/v1/data
Advanced Usage
CLI Automation
# Multi-region deployment
ellb deploy --regions us-east eu-west
ellb deploy --name canary --production
ellb logs --tail 50