/demo-notes-app

Source for the demo notes app in the SST Guide

Primary LanguageTypeScriptMIT LicenseMIT

SST Demo Notes App Seed Status

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

Demo App

We use React.js, AWS Lambda, API Gateway, DynamoDB, and Cognito. This repo is a full-stack serverless app built with SST.

  • The stacks/ directory defines our AWS infrastructure using AWS CDK.
  • The packages/functions directory contains the Lambda functions that power the CRUD API.
  • The 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.

Usage

Clone this repo.

$ git clone https://github.com/sst/demo-notes-app

Install dependencies.

$ pnpm install

This project uses a secret that we are not checking in to the repo. Make sure to create one before deploying.

$ pnpm sst secrets set STRIPE_SECRET_KEY <YOUR STRIPE SECRET TEST KEY>

Developing Locally

Start the Live Lambda Dev Environment.

$ pnpm sst dev

Start the React local dev environment from the packges/frontend/ dir.

$ pnpm run dev

Running Tests

From the project root.

$ pnpm test

Deploying to Prod

Run this in the project root to deploy it to prod.

$ pnpm sst deploy --stage prod

Join the SST community over on Discord and follow us on Twitter.