Set Up Your Development Environment
Start by writing your first serverless Tool.Prepare
Create account on vivgrid
Create account on vivgrid
Log in to the Vivgrid Console and create a new
You will receive an
Project
.You will receive an
APP_KEY
and APP_SECRET
. Keep them safe—you will need them later for local debugging or deployment.Install the Stateful Serverless Framework: YoMo
Install the Stateful Serverless Framework: YoMo
curl -fsSL https://get.yomo.run | sh
Write Your First Tool
app.go
Run Locally or on a Self‑Managed Server
Deploy to Vivgrid as Geo‑Distributed Serverless
Install the cli
Install the cli
We provide the
yc
cli to ease the provisioning stage, install it:
curl "https://bina.egoist.dev/vivgrid/yc" | sh
Deploy your serverless to all regions
Deploy your serverless to all regions
Create a
An example
yc.yaml
file in the root of your project directory, then run:
yc deploy app.go --env OPENWEATHERMAP_API_KEY=<YOUR_OPENWEATHERMAP_API_KEY>
.An example
yc.yaml
file: