From d062f9c06054624308412502e3a682cb0951dc80 Mon Sep 17 00:00:00 2001 From: Radu Dumitrescu Date: Fri, 21 Jun 2024 20:31:03 +0300 Subject: [PATCH 1/2] Update README.md I've added Genezio as a supported serverless functions provider --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index ca63951c..0d613bc0 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,40 @@ function handler (event, context) { exports.handler = handler ``` +## Genezio +Genezio is a serverless cloud compatible with Lambda functions but faster and cheaper. + +### Minimal handler app + +The only AWS Lambda-compatible code you need to write is a simple handler like the one below. You can write all other code as you would normally do. + +```js +// index.mjs +import express from 'express'; +import serverlessExpress from '@codegenie/serverless-express'; + +const app = express(); + +app.get('/', (req, res) => { + res.send('Hello World from Express serverless!xx'); +}); + +// You don't need to listen to the port when using serverless functions in production +if (process.env.NODE_ENV === 'dev') { + app.listen(8080, () => { + console.log( + 'Server is running on port 8080. Check the app on http://localhost:8080' + ); + }); +} + +export const handler = serverlessExpress({ app }); +``` + +Try out a ready-to-use demo: + +[![Deploy to Genezio](https://raw.githubusercontent.com/Genez-io/graphics/main/svg/deploy-button.svg)](https://app.genez.io/start/deploy?repository=https://github.com/Genez-io/codegenie-serverless-express) + ## Azure ### Async Azure Function v3/v4 handler wrapper From 61dedfa4adc30573e1fdc5837530c7d12eab0dc1 Mon Sep 17 00:00:00 2001 From: Radu Dumitrescu Date: Fri, 21 Jun 2024 20:39:07 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d613bc0..0ec590dc 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Starting a new software project? Check out Code Genie - a