WARNING: WIP
A lightweight, open source FaaS (Function as a Service) framework for Deno.
The framework allows you to go from:
/** * Send "Hello, World!" * @param request The Deno request https://deno.land/std@0.74.0/http/server.ts */ export default async (request) => { request.respond({ status: 200, body: 'Hello, World!', }); };
To:
curl http://my-url # Output: Hello, World!
All without needing to worry about writing an HTTP server or complicated request handling logic.
There's no installation step for this library. It's Deno.
Assumes you have Deno installed
Create an main.ts
file with the following contents:
export default async (request) => { request.respond({ status: 200, body: 'Hello, World!', }); };
Start the local server:
deno run --allow-net --allow-read --allow-env main.ts
Send requests to this function using curl
from another terminal window:
curl localhost:8080 Output: Hello, World!
You can also run this server in a container:
docker build -t app . && docker run -it --init -p 8080:8080 app
gcloud beta run deploy deno-ff \ --source . \ --allow-unauthenticated
TODO: Publish this to a separate repo:
https://dev.to/craigmorten/how-to-publish-deno-modules-2cg6
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4