A collection of example serverless apps built with SST.
| Example | Description | Tutorial |
|---|---|---|
| rest-api-js | 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-with-domain | Add a custom domain to a serverless REST API on AWS using the Api construct. |
Link |
| rest-api-crud-with-dynamodb | Create a CRUD API with serverless using DynamoDB. With the Api and Table constructs. |
Link |
| rest-api-with-dynamodb | Use DynamoDB in your serverless app on AWS using the Api and Table to create a simple hit counter. |
Link |
| rest-api-with-mongo-db | Use MongoDB in your serverless app and create a simple API with Api to query a list of movies. |
Link |
| rest-api-with-postgresql-db | Use PostgreSQL in your serverless app on AWS using Api and Amazon Aurora Serverless to create a simple hit counter. |
Link |
| rest-api-iam-auth-cognito | Add Cognito User Pool authentication to a serverless API using the Api and Auth constructs. |
Link |
| rest-api-iam-auth-facebook | Add Facebook authentication to a serverless API using the Api and Auth constructs. |
Link |
| rest-api-iam-auth-google | Add Google authentication to a serverless API using the Api and Auth constructs. |
Link |
| rest-api-iam-auth-twitter | Add Twitter authentication to a serverless API using the Api and Auth constructs. |
Link |
| rest-api-iam-auth-auth0 | Add Auth0 authentication to a serverless API using the Api and Auth constructs. |
Link |
| rest-api-jwt-auth-cognito | Add JWT authorization with Cognito User Pool to a serverless API using the Api constructs. |
Link |
| rest-api-jwt-auth-auth0 | Add JWT authorization with Auth0 to a serverless API using the Api constructs. |
Link |
| rest-api-lambda-auth-iam-response | Add Lambda authorizer (simple response format) to a serverless API using the Api constructs. |
|
| rest-api-lambda-auth-simple-response | Add Lambda authorizer (IAM policy response format) to a serverless API using the Api constructs. |
|
| graphql-api-with-apollo | Create a serverless Apollo GraphQL API on AWS using the ApolloApi construct. |
Link |
| graphql-api-with-appsync | Create a serverless AppSync GraphQL API on AWS using the AppSyncApi construct. |
Link |
| websocket-api | Create a serverless WebSocket API on AWS using the WebSocketApi construct to define the routes of our API. |
Link |
| react.js-with-api | Create a full-stack serverless React.js click counter app on AWS using the ReactStaticSite construct. |
Link |
| react.js-with-auth-api | Create a full-stack serverless React.js app that connects to an API secured using Cognito. Uses the ReactStaticSite and Auth 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 |
| topic | Create a pub/sub system in your serverless app using the Api and Topic constructs. |
Link |
| bucket-notification | Automatically resize images that are uploaded to an S3 bucket. Uses the Bucket construct. |
Link |
| vs-code | A walkthrough on how to use SST to debug Lambda functions live with VS Code. | Link |
| lambda-layer | Use Layers in your serverless app to take screenshots of webpages. Uses the Api construct. |
Link |
Learn 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.