Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework and AWS Lambda
JavaScript Python Java HTML CSS
Latest commit 9b54b38 Feb 24, 2017 @DavidWells DavidWells committed on GitHub Merge pull request #98 from christopheranderson/azure-examples
Added azure-node-http example 🎉
Permalink
Failed to load latest commit information.
.github add PR template Dec 8, 2016
aws-java-simple-http-endpoint cleanup gitignore definitions Feb 10, 2017
aws-node-alexa-skill cleanup gitignore definitions Feb 10, 2017
aws-node-auth0-custom-authorizers-api Merge pull request #90 from christophgysin/fix-auth0-cache Feb 13, 2017
aws-node-env-variables-encrypted-in-a-file cleanup gitignore definitions Feb 10, 2017
aws-node-env-variables cleanup gitignore definitions Feb 10, 2017
aws-node-fetch-file-and-store-in-s3 cleanup gitignore definitions Feb 10, 2017
aws-node-function-compiled-with-babel cleanup gitignore definitions Feb 10, 2017
aws-node-github-webhook-listener update package.json Jan 4, 2017
aws-node-iot-event cleanup gitignore definitions Feb 10, 2017
aws-node-recursive-function cleanup gitignore definitions Feb 10, 2017
aws-node-rest-api-with-dynamodb-and-offline renamed example Feb 14, 2017
aws-node-rest-api-with-dynamodb cleanup gitignore definitions Feb 10, 2017
aws-node-scheduled-cron cleanup gitignore definitions Feb 10, 2017
aws-node-scheduled-weather cleanup gitignore definitions Feb 10, 2017
aws-node-serve-dynamic-html-via-http-endpoint cleanup gitignore definitions Feb 10, 2017
aws-node-simple-http-endpoint cleanup gitignore definitions Feb 10, 2017
aws-node-single-page-app-via-cloudfront cleanup gitignore definitions Feb 10, 2017
aws-node-text-analysis-via-sns-post-processing cleanup gitignore definitions Feb 10, 2017
aws-node-twilio-send-text-message update readme Dec 12, 2016
aws-python-alexa-skill cleanup gitignore definitions Feb 10, 2017
aws-python-rest-api-with-dynamodb cleanup gitignore definitions Feb 10, 2017
aws-python-scheduled-cron cleanup gitignore definitions Feb 10, 2017
aws-python-simple-http-endpoint cleanup gitignore definitions Feb 10, 2017
azure-node-simple-http-endpoint Update package to point to npm package Feb 22, 2017
openwhisk-node-chaining-functions cleanup gitignore definitions Feb 10, 2017
openwhisk-node-scheduled-cron cleanup gitignore definitions Feb 10, 2017
openwhisk-node-simple-http-endpoint cleanup gitignore definitions Feb 10, 2017
openwhisk-node-simple cleanup gitignore definitions Feb 10, 2017
.eslintignore ignore node_modules Nov 14, 2016
.eslintrc.json eslint: disable no-console Feb 6, 2017
.gitignore cleanup gitignore definitions Feb 10, 2017
.travis.yml add travis Nov 14, 2016
README.md Merge pull request #98 from christopheranderson/azure-examples Feb 25, 2017
community-examples.json add example Feb 10, 2017
generate-readme.js update readme gen #88 Feb 10, 2017
package.json update readme Feb 10, 2017

README.md

WebsiteEmail UpdatesGitterForumMeetupsTwitterFacebookContact Us

Serverless Examples

A collection of ready-to-deploy Serverless Framework services.

Table of Contents

Click to expand

Getting Started

If you are new to serverless, we recommend getting started with:

Each example contains a README.md with an explanation about the service, it's use cases and a guide on deploying.

Examples

Have an example? Submit a PR or open an issue. ⚡️

Example Runtime
Aws Alexa Skill
This example demonstrates how to use an AWS Lambdas for your custom Alexa skill.
nodeJS
Aws Auth0 Api Gateway
Demonstration of protecting API gateway endpoints with auth0
nodeJS
Aws Env Variables Encrypted In A File
Serverless example managing secrets in an encrypted file
nodeJS
Aws Env Variables
This example demonstrates how to use environment variables for AWS Lambdas.
nodeJS
Aws Fetch File And Store In S3
Fetch an image from remote source (URL) and then upload the image to a S3 bucket.
nodeJS
Aws Function Compiled With Babel
Demonstrating how to compile all your code with Babel
nodeJS
Aws Github Webhook Listener
Extend your github repositories with this github webhook listener
nodeJS
Aws Iot Event
Example on how to setup a AWS IoT Rule to send events to a Lambda function
nodeJS
Aws Rest Api Offline
Serverless REST API with DynamoDB and offline support
nodeJS
Aws Rest With Dynamodb
Serverless CRUD service exposing a REST HTTP interface
nodeJS
Aws Scheduled Cron
Example of creating a function that runs as a cron job using the serverless schedule event
nodeJS
Aws Scheduled Weather
Example of creating a function that runs as a cron job using the serverless schedule event through pulling weather and sending an email daily.
nodeJS
Aws Serve Dynamic Html Via Http Endpoint
Hookup an AWS API Gateway endpoint to a Lambda function to render HTML on a GET request
nodeJS
Aws Serve Simple Http Endpoint
Example demonstrates how to setup a simple HTTP GET endpoint
nodeJS
Aws Single Page App Via Cloudfront
Demonstrating how to deploy a Single Page Application with Serverless
nodeJS
Serverless Single Page App Plugin
A plugin to simplify deploying Single Page Application using S3 and CloudFront
nodeJS
Aws Text Analysis Via Sns Post Processing
Example demonstrates how to setup a simple data processing pipeline
nodeJS
Aws Node Twilio Send Text Message
Send a text message via twilio from aws lambda. See live demo
nodeJS
Aws Alexa Skill
This example demonstrates how to use an AWS Lambdas for your custom Alexa skill.
python
Aws Rest With Dynamodb
Serverless CRUD service exposing a REST HTTP interface
python
Aws Scheduled Cron
Example of creating a function that runs as a cron job using the serverless schedule event
python
Aws Simple Http Endpoint
Example demonstrates how to setup a simple HTTP GET endpoint with python
python
Azure Node Simple Http Endpoint
An example of making http endpoints with the Azure Functions Serverless Framework plugin
nodeJS
Openwhisk Node Chaining Functions
Example of chaining function calls using sequences and the sdk.
nodeJS
Openwhisk Node Scheduled Cron
Example of creating a function that runs as a cron job using the serverless schedule event.
nodeJS
Openwhisk Node Simple Http
Example demonstrates how to setup a simple HTTP GET endpoint with OpenWhisk.
nodeJS
Openwhisk Node Simple
Simple example demonstrating OpenWhisk provider support.
nodeJS

Community Examples

Add an example

Example Author
Cordis Serverless
A serverless API for EU Cordis data
marzeelabs
Giphy Bot
giphy-bot for Facebook chat
tywong
Jrestless Examples
JRestless (Java / JAX-RS) examples for API Gateway Functions (plain JAX-RS, Spring, binary data requests/responses, custom authorizers and Cognito User Pool authorizers), SNS Functions (asynchronous communication between functions) and Service Functions (synchronous HTTP-like communication between functions - transparent through Feign)
bbilger
Jwt Lambda Python
Minimal proof-of-concept implementation of JWT with Serverless / AWS Lambda
mikaelmork
Keboola Developer Portal
Keboola developer portal built with Serverless
keboola
Offset Trump
Single page app using Serverless (C# runtime) and S3 site hosting. Pledge to do a good thing for the next four years to offset the potential negative effects of the US Presidency
FLGMwt
Pfs Email Serverless
This is a lambda function created by the serverless framework. It searches through members in our mongodb who have not been sent emails and sends them an email with their custom token to unlock the pledge free stream. It then marks those members off as already receiving the email.
SCPR
Plaid Cashburndown Service
Service for calculating cash burndown with plaid. Frontend code can be found here: https://github.com/cplee/cashburndown-site
cplee
Sc5 Serverless Boilerplate
A boilerplate that contains setup for test-driven development
SC5
Serverless Aws Rekognition Finpics
Use AWS Rekognition to provide a faces search of finpics.com
rgfindl
Serverless Blog To Podcast
Service that reads RSS feed and converts the entries to a podcast feed and audio files using Amazon Polly
SC5
Serverless Cloudwatch Rds Custom Metrics
A NodeJS-based MySQL RDS Data Collection script to push Custom Metrics to Cloudwatch with Serverless
AndrewFarley
Serverless Delivery Framework
This is a boilerplate for version release pipeline with serverless framework
99xt
Serverless Facebook Quotebot
100% Serverless Facebook messenger chatbot which will respond with inspiring quotes
pmuens
Serverless Garden Aid
IoT Garden Aid Backend
garden-aid
Serverless Mailgun Slack
A Serverless function for posting to a Slack Webhook in response to a Mailgun route
Marcus-L
Serverless Messenger Boilerplate
Serverless messenger bot boilerplate
SC5
Serverless Msg Gateway
A messaging aggregator for kik, skype, twilio, telegram, & messenger. Send and receive messages in a standard format.
yonahforst
Serverless Newsletter Signup
Saves user details into DynamoDB table. Required values are email, first_name and last_name.
ivanderbu2
Serverless Npm Registry
Serverless private npm registry, proxy and cache.
craftship
Serverless Pokego
Serverless-powered API to fetch nearby Pokemon Go data
jch254
Serverless Postgraphql
GraphQL endpoint for PostgreSQL using postgraphql
rentrop
Serverless Python Sample
A simple serverless python sample with REST API endpoints and dependencies
bennybauer
Serverless React Boilerplate
A serverless react boilerplate for offline development
99xt
Serverless Screenshot
Serverless Screenshot Service using PhantomJS
svdgraaf
Serverless Slack Cron
Lambda function which sends messages to Slack channel in regular intervals via cron trigger.
ivanderbu2
Serverless Slack Emojibot
Serverless slack bot for emoji
markhobson
Serverless Slack Trevorbot
Slack bot for info on where in the world is Trevor Gerhardt?
conveyal
Serverless Url Shortener
A simple url-shortener, using Serverless framework
aletheia
Serverless Weekly2pocket App
Serverless-powered API for sending posts to pocket app
s0enke
Sls Access Counter
Site visitor counter
takahashim
Sls Form Mail
Send SNS email from form data
takahashim

Contributing

We are happy to accept more examples from the community. 🎉

Adding example code

  1. Make sure your contribution matches the linting setup for this repo:

    Run the linting via

    npm run lint
  2. Add a package.json file in your example with the name of the example and a description and any dependencies used.

  3. Regenerate the README.md with the following command

    npm run docs
  4. Open a new pull request with your example. ⚡️

Adding a community example

We love hearing about projects happening in the community. Feel free to add your serverless project to our growing list.

  1. Add link, title, and description to the community-examples.json file.

  2. Open a new pull request with your example. ⚡️