Skip to content

ChenKS12138/wasm-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasm-lambda

CI

A FaaS service tool based on WebAssembly, provides a simple way to write web service.

Usage

  1. Clone And Install
git clone https://github.com/ChenKS12138/wasm-lambda.git
cd wasm-lambda
cargo install --path .
  1. Build Example hello-world
cd examples/hello-world
cargo build
  1. Dev And Auto-reload
# Start Dev Server
wasm-lambda dev --bind 0.0.0.0:3000 -m hello-world:./target/wasm32-wasi/debug/hello-world.wasm

# Rebuild
# cargo build
  1. Send Request

Open Browser, visit http://127.0.0.1:3000/hello-world/latest/

OR

curl -iL http://127.0.0.1:3000/hello-world/latest/
curl -i http://127.0.0.1:3000/hello-world/latest/api/capitalize/hello-world
curl -i http://127.0.0.1:3000/hello-world/latest/api/echo-query?name=cattchen&age=21
curl -i -X POST -d '{"name":"cattchen","age":21}' http://127.0.0.1:3000/hello-world/latest/api/echo-person

About

FaaS servcie tool based on WebAssembly

Topics

Resources

Stars

Watchers

Forks