gitmyhub

examples

JavaScript ★ 12k updated 24d ago

Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more.

A library of ready-to-deploy backend starter projects for the Serverless Framework, covering HTTP APIs, databases, file processing, and more across Node.js, Python, Go, Java, and .NET on AWS, Azure, and Google Cloud.

JavaScriptNode.jsPythonGoJava.NETAWS LambdaServerless Frameworksetup: moderatecomplexity 3/5

This repository is a collection of working starter projects built with the Serverless Framework, a tool that lets developers deploy backend code to cloud providers like AWS Lambda, Microsoft Azure, and Google Cloud Functions without managing servers themselves. If you have heard the term "serverless" and wondered what it looks like in practice, this repo is a library of concrete, deployable examples.

The examples span multiple programming languages, including Node.js, Python, Go, Java, and .NET, and they cover a wide range of use cases. There are examples for building simple HTTP endpoints, connecting to databases like DynamoDB and MongoDB Atlas, handling file uploads to AWS S3, resizing images on demand, processing data streams from AWS Kinesis, setting up GraphQL APIs, and building Alexa voice skills, among many others. Each example lives in its own folder and comes with its own README explaining what it does and when you might use it.

To use any of the examples, you install the Serverless Framework on your computer, then run a single command pointing at the example you want. The command copies the project template into a new folder with a name you choose, and from there you can configure and deploy it to your cloud account. The barrier to getting a working backend running is fairly low if you already have a cloud account set up.

Beyond the official examples maintained by the Serverless team, the README also lists community-contributed examples. These are projects submitted by other developers and cover additional patterns and use cases not found in the official set. Anyone can submit a new example by opening a pull request.

The repository does not teach the Serverless Framework itself from scratch. It assumes you are ready to look at working code and adapt it. If you are completely new to cloud functions, the README suggests starting with one of the simple HTTP endpoint examples in Node.js, Python, Java, or Go as an entry point. The full README is longer than what was shown.

Where it fits