1. Home
  2. /
  3. Serverless-stack
  4. /
  5. Simple SST App

Simple SST App - Serverless-stack Typing CST Test

Loading…

Simple SST App — Serverless-stack Code

A simple SST app creating an API and Lambda function.

# sst/demo/app.ts
import * as sst from '@serverless-stack/resources';

export default class MyStack extends sst.Stack {
	constructor(scope, id, props) {
		super(scope, id, props);

		const api = new sst.Api(this, 'Api', {
		routes: {
		'GET /hello': new sst.Function(this, 'Lambda', {
		handler: 'functions/hello.main'
		})
		}
		});
		this.addOutputs({
		ApiEndpoint: api.url
		});
	}
}

Serverless-stack Language Guide

Serverless Stack (SST) is an open-source framework for building full-stack serverless applications on AWS. It provides a development environment with Live Lambda Reloading, infrastructure-as-code using SST constructs (powered by AWS CDK), and seamless integrations for APIs, databases, authentication, and frontends.

Primary Use Cases

  • ▸Building serverless APIs
  • ▸Full-stack apps using AWS Lambda + DynamoDB
  • ▸Event-driven architectures using SQS, SNS, EventBridge
  • ▸Real-time apps using WebSocket or API Gateway
  • ▸Deploying React/Next.js frontends with backend integration

Notable Features

  • ▸Live Lambda Reloading
  • ▸SST Constructs built on AWS CDK
  • ▸Cross-stack references simplified
  • ▸Built-in frontend hosting
  • ▸Strong TypeScript support

Origin & Creator

Created by SST Inc. (initially by the team behind Seed.run) as an evolution of CDK-based serverless tooling.

Industrial Note

SST is used in high-scale serverless architectures where rapid iteration, cost efficiency, and fully managed AWS components are essential.

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher