Giter Site home page Giter Site logo

scaleway / serverless-examples Goto Github PK

View Code? Open in Web Editor NEW
44.0 44.0 9.0 1016 KB

Example projects and patterns for use with Scaleway's serverless products

Makefile 0.88% Shell 3.10% Dockerfile 2.02% Python 24.07% HCL 26.27% JavaScript 12.70% HTML 1.91% Go 15.32% Rust 6.11% CSS 0.77% TypeScript 3.49% PHP 1.92% Twig 0.90% Java 0.55%
containers functions scaleway serverless

serverless-examples's People

Contributors

bemilie avatar cyclimse avatar dependabot[bot] avatar lucasscw avatar miguescri avatar mokuhasushi avatar n-arno avatar nerda-codes avatar norbjd avatar qlefevre avatar quantumsheep avatar redanrd avatar rouche-q avatar shillaker avatar thibaultjunin avatar thomas-tacquet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

serverless-examples's Issues

Improve typing for typescript-with-node serverless function example

This example can be improved by applying the types defined in @scaleway/serverless-functions e.g.

import type { Handler } from "@scaleway/serverless-functions/framework/types/types";

export const handle: Handler = async (event, context, cb) => {
    return {
        body: "Hello world!",
        headers: { "Content-Type": ["application/json"] },
        statusCode: 200,
    };
};

The types from @scaleway/serverless-functions/framework/types/types could also be exposed at the package entry point so it can be simplified to:

import type { Handler } from "@scaleway/serverless-functions";

export const handle: Handler = async (event, context, cb) => {
    return {
        body: "Hello world!",
        headers: { "Content-Type": ["application/json"] },
        statusCode: 200,
    };
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.