A collection of example serverless apps built with SST.
| Starter | Description |
|---|---|
| typescript-monorepo | Starting point for an advanced Typescript project. |
| Example | Description | Tutorial |
|---|---|---|
| rest-api | Create a serverless REST API on AWS using the Api construct to define the routes of our API. |
Link |
| rest-api-ts | Create a serverless REST API on AWS with TypeScript using the Api construct to define the routes of our API. |
Link |
| rest-api-go | Create a serverless REST API on AWS with Golang using the Api construct to define the routes of our API. |
Link |
| rest-api-python | Create a serverless REST API on AWS with Python using the Api construct to define the routes of our API. |
|
| rest-api-csharp | Create a serverless REST API on AWS with C# using the Api construct to define the routes of our API. |
|
| rest-api-custom-domain | Add a custom domain to a serverless REST API on AWS using the Api construct. |
Link |
| rest-api-dynamodb | Use DynamoDB in your serverless app on AWS using the Api and Table to create a simple hit counter. |
Link |
| rest-api-mongodb | Use MongoDB in your serverless app and create a simple API with Api to query a list of movies. |
Link |
| rest-api-postgresql | Use PostgreSQL in your serverless app on AWS using Api and Amazon Aurora Serverless to create a simple hit counter. |
Link |
| crud-api-dynamodb | Create a CRUD API with serverless using DynamoDB. With the Api and Table constructs. |
Link |
| api-auth-cognito | Add Cognito User Pool authentication to a serverless API using the Api and Auth constructs. |
Link |
| api-auth-facebook | Add Facebook authentication to a serverless API using the Api and Auth constructs. |
Link |
| api-auth-google | Add Google authentication to a serverless API using the Api and Auth constructs. |
Link |
| api-auth-twitter | Add Twitter authentication to a serverless API using the Api and Auth constructs. |
Link |
| api-auth-auth0 | Add Auth0 authentication to a serverless API using the Api and Auth constructs. |
Link |
| api-auth-jwt-cognito-user-pool | Add JWT authorization with Cognito User Pool to a serverless API using the Api constructs. |
Link |
| api-auth-jwt-auth0 | Add JWT authorization with Auth0 to a serverless API using the Api constructs. |
Link |
| api-auth-lambda-authorizer-iam-response | Add Lambda authorizer (simple response format) to a serverless API using the Api constructs. |
|
| api-auth-lambda-authorizer-simple-response | Add Lambda authorizer (IAM policy response format) to a serverless API using the Api constructs. |
|
| graphql-apollo | Create a serverless Apollo GraphQL API on AWS using the ApolloApi construct. |
Link |
| graphql-appsync | Create a serverless AppSync GraphQL API on AWS using the AppSyncApi construct. |
Link |
| websocket | Create a serverless WebSocket API on AWS using the WebSocketApi construct to define the routes of our API. |
Link |
| react-app | Create a full-stack serverless React.js click counter app on AWS using the ReactStaticSite construct. |
Link |
| react-app-auth-cognito | Create a full-stack serverless React.js app that connects to an API secured using Cognito. Uses the ReactStaticSite and Auth construct. |
Link |
| nextjs-app | Create a full-stack serverless Next.js click counter app on AWS using the NextjsSite construct. |
Link |
| vue-app | Create a full-stack serverless Vue.js click counter app on AWS using the StaticSite construct. |
Link |
| svelte-app | Create a full-stack serverless Svelte click counter app on AWS using the StaticSite construct. |
Link |
| expo-app | Create a full-stack serverless Expo click counter app on AWS using the Api construct for the serverless API. |
Link |
| flutter-app | Create a full-stack serverless Flutter click counter app on AWS using the Api construct. |
Link |
| cron-job | Create a cron job in your serverless app using the Cron construct. |
Link |
| queue | Create a queue system in your serverless app using the Api and Queue constructs. |
Link |
| pub-sub | Create a pub/sub system in your serverless app using the Api and Topic constructs. |
Link |
| bucket-resize-image | Automatically resize images that are uploaded to an S3 bucket. Uses the Bucket construct. |
Link |
| datadog | A walkthrough on how to monitor your serverless app with Datadog. | Link |
| sentry | A walkthrough on how to monitor your serverless app with Sentry. | Link |
| vscode | A walkthrough on how to use SST to debug Lambda functions live with VS Code. | Link |
| webstorm | A walkthrough on how to use SST to debug Lambda functions live with WebStorm. | Link |
| intellij-idea | A walkthrough on how to use SST to debug Lambda functions live with IntelliJ IDEA. | Link |
| layer-chrome-aws-lambda | Use Layers in your serverless app to take screenshots of webpages. Uses the Api construct. |
Link |
| middy-validator | Use Middy in your serverless app to validate API request and response schemas. Uses the Api construct. |
Link |
| prisma | Create a Layer to use Prisma in your serverless app. |
You can try any of these examples by running.
$ npm init serverless-stack --example <example>
# Or with Yarn
$ yarn create serverless-stack --example <example>So to try the vscode example, run.
$ npm init serverless-stack --example vscodeThis'll create a new SST app in a vscode/ directory.
$ cd vscode
$ cd npx sst startLearn more about the SST.
To add an example:
-
Checkout this repo
-
Create a new directory at the root with the name of the example
-
Add the example code
-
Format the code by
Running Prettier for JS at the root
$ yarn $ yarn run prettier
Running the following in a dir with Go files
$ go fmt
-
Submit a PR!
And join us on Slack.