Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ serverless install -u https://github.com/serverless/examples/tree/master/folder-
| [Aws Text Analysis Via Sns Post Processing](https://github.com/serverless/examples/tree/master/aws-node-text-analysis-via-sns-post-processing) <br/> Example demonstrates how to setup a simple data processing pipeline | nodeJS |
| [Aws Node Twilio Send Text Message](https://github.com/serverless/examples/tree/master/aws-node-twilio-send-text-message) <br/> Send a text message via twilio from aws lambda. [See live demo](http://twilio-serverless-example.surge.sh) | nodeJS |
| [Baddadjokesbot](https://github.com/serverless/examples/tree/master/aws-node-twitter-joke-bot) | nodeJS |
| [Aws Node Typescript Apollo Lambda](https://github.com/serverless/examples/tree/master/aws-node-typescript-apollo-lambda) <br/> Serverless example for apollo lambda | nodeJS |
| [Aws Node Typescript Kinesis](https://github.com/serverless/examples/tree/master/aws-node-typescript-kinesis) <br/> Serverless example using Kinesis with TypeScript | nodeJS |
| [Nest Serverless](https://github.com/serverless/examples/tree/master/aws-node-typescript-nest) <br/> serverless app | nodeJS |
| [Typescript Example](https://github.com/serverless/examples/tree/master/aws-node-typescript-rest-api-with-dynamodb) | nodeJS |
Expand Down Expand Up @@ -183,6 +184,7 @@ serverless install -u https://github.com/author/project -n my-project
| **[Serverless Dashboard For Atom Editor](https://github.com/horike37/serverless-dashboard-for-atom)** <br/> Atom editor package which allows you to deploy and visualize your serverless services with Serverless Framework on your editor. | [horike37](http://github.com/horike37) |
| **[Serverless Es6/7 Crud Api](https://github.com/AnomalyInnovations/serverless-stack-demo-api)** <br/> [Serverless Stack](http://serverless-stack.com) examples of backend CRUD APIs (DynamoDB + Lambda + API Gateway + Cognito User Pool authorizer) for [React.js single-page app](http://demo.serverless-stack.com) | [AnomalyInnovations](http://github.com/AnomalyInnovations) |
| **[Serverless Gitlab Ci](https://github.com/bvincent1/serverless-gitlab-ci)** <br/> Simple Gitlab CI template for automatic testing and deployments | [bvincent1](http://github.com/bvincent1) |
| **[Serverless Image Labeller](https://github.com/nileshprasad137/serverless-image-labeller)** <br/> Serverless image labelling using Rekognition, s3, DynamoDB. | [nileshprasad137](http://github.com/nileshprasad137) |
| **[Serverless Instagram Crawler](https://github.com/kimcoder/serverless-instagram-crawler)** <br/> Instagram hashtag Crawler with Lambda & DynamoDB. | [kimcoder](http://github.com/kimcoder) |
| **[Serverless Kakao Bot](https://github.com/JisuPark/serverless-kakao-bot)** <br/> Easy development for Kakaotalk Bot with Serverless | [JisuPark](http://github.com/JisuPark) |
| **[Serverless Lambda S3 Demonstration](https://github.com/johncmunson/serverless-lambda-s3)** <br/> This project demonstrates how the Serverless Framework can be used to deploy a NodeJS Lambda function that responds to events in an S3 bucket. | [johncmunson](http://github.com/johncmunson) |
Expand Down Expand Up @@ -257,7 +259,6 @@ serverless install -u https://github.com/author/project -n my-project
| **[Sls Form Mail](https://github.com/takahashim/sls-form-mail)** <br/> Send SNS email from form data | [takahashim](http://github.com/takahashim) |
| **[Vanity Stargazer](https://github.com/silvermullet/vanity-stargazer)** <br/> Github vanity-stargazer is a serverless application to handle posting Github new star gazers to Slack | [silvermullet](http://github.com/silvermullet) |
| **[Video Preview And Analysis Service](https://github.com/laardee/video-preview-and-analysis-service)** <br/> An event-driven service that generates labels using Amazon Rekognition and creates preview GIF animation from a video file. | [laardee](http://github.com/laardee) |
| **[Serverless Image Labelling](https://github.com/nileshprasad137/serverless-image-labeller)** <br/> Serverless image labelling using AWS Rekognition, s3, DynamoDB. | [nileshprasad137](http://github.com/nileshprasad137) |
<!-- AUTO-GENERATED-CONTENT:END -->

## Contributing
Expand Down
16 changes: 16 additions & 0 deletions aws-node-typescript-apollo-lambda/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# files
.DS_Store
.env*
.vscode
*.log

# package directories
node_modules
jspm_packages
.build

# Serverless directories
.serverless

# Webpack directories
.webpack
34 changes: 34 additions & 0 deletions aws-node-typescript-apollo-lambda/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!--
title: 'AWS Apollo Lambda (NodeJS & Typescript)'
description: 'This example provides a setup for a Lambda Graphql API with apollo'
layout: Doc
framework: v1
platform: AWS
language: nodeJS
authorLink: 'https://github.com/jmpfrazao'
authorName: 'Miguel Frazao'
authorAvatar: 'https://avatars3.githubusercontent.com/u/28927258?s=460&v=4'
-->
# Apollo Lambda GraphQL API Example
This example demonstrates how to setup a lambda graphql API with apollo

- I used apiKeys to secure the endpoints but you can add custom authorizers

## Use Cases
- Small graphql API
- Creating a temporary lambda API that can easily be converted to standard GraphQL API

## Setup
- Setup your env file for AWS deployment with:
- - APOLLO_LAMBDA_KEY
- - NODE_ENV

- sls deploy

## Usage
- To test it locally with serverless-offline by running:
`npm run dev`
- set `x-api-key` header with key `your-api-key-that-is-at-least-characters-long`

## Future
- Add support for subscription with Redis
Loading