SST 指南中演示说明应用程序的源代码
The SST Guide is a comprehensive open source tutorial for building and deploying full-stack apps using serverless and React on AWS.
We create a note taking app from scratch — demo.sst.dev
We use React.js, AWS Lambda, API Gateway, DynamoDB, and Cognito. This repo is a full-stack serverless app built with SST.
infra/ directory defines our AWS infrastructure.packages/functions directory contains the Lambda functions that power the CRUD API.packages/frontend directory contains the React app.It's a single-page React app powered by a serverless CRUD API. We also cover how add user authentication, handle file uploads, and process credit card payments with Stripe.
Before you get started:
Clone this repo.
git clone https://github.com/sst/notes.gitInstall dependencies.
npm installThis project uses a secret that we are not checking in to the repo. Make sure to create one before deploying.
sst secret set StripeSecretKey From your project root run:
npx sst devThis will start your frontend and run your functions Live.
Run this in the project root to deploy it to prod.
npx sst deploy --stage productionMake sure to set your secret for prod as well.
sst secret set StripeSecretKey --stage productionJoin the SST community over on Discord and follow us on Twitter.
暂无开放 Issues,或尚未同步最近议题。