sst / demo-notes-app

Source for the demo notes app in the SST Guide

Home Page:https://demo.sst.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SST Demo Notes App

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 infra/ directory defines our AWS infrastructure.
  • 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.

Prerequisites

Before you get started:

  1. Configure your AWS credentials
  2. Install the SST CLI

Usage

Clone this repo.

git clone https://github.com/sst/notes.git

Install dependencies.

npm install

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

sst secret set StripeSecretKey <YOUR_STRIPE_SECRET_TEST_KEY>

Developing Locally

From your project root run:

npx sst dev

This will start your frontend and run your functions Live.

Deploying to Prod

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

npx sst deploy --stage production

Make sure to set your secret for prod as well.

sst secret set StripeSecretKey <YOUR_STRIPE_SECRET_TEST_KEY> --stage production

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

About

Source for the demo notes app in the SST Guide

https://demo.sst.dev

License:MIT License


Languages

Language:TypeScript 92.4%Language:CSS 4.2%Language:HTML 2.4%Language:JavaScript 1.0%