Deno Fass Deno's self-deployed cloud function framework
Deno's self-deployed cloud function framework
git clone https://github.com/raw2cc/deno-faas cd deno-faas cp .env.example .env deno run -A --unstable .\mod.ts curl http://localhost:3000/test1
.envthe configuration server port and function to obtain the address of the file.
/test1will look for
https://raw.githubusercontent.com/raw2cc/deno-faas/main/test/test1.tsthe file, if found, would pull him off then loaded.
Function file can have two functions, one is
initit will only be called once after loading,
callwill be called when the request comes.
Every 10 minutes, the server will automatically reload all cloud functions.
See the example folder.
It is estimated that there are many bugs, welcome to try.
Source Code: https://github.com/raw2cc/deno-faas
Deno is released, it’s time to find out if it can prove a worthy competition for Node.js. What is Deno? Why Deno can be considered an alternative to Node? The main differences between Deno and Node. Write a simple Deno app.