Skip to content

Commit 73e8431

Browse files
authored
Merge pull request #6 from sst/ts-update
Ts update
2 parents 0ed927f + d7ee20f commit 73e8431

102 files changed

Lines changed: 13209 additions & 54907 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
31
# dependencies
42
node_modules
53

6-
# testing
7-
/coverage
4+
# sst
5+
.sst
6+
.build
87

9-
# production
10-
/build
8+
# opennext
9+
.open-next
1110

1211
# misc
1312
.DS_Store
1413

15-
# sst build output
16-
.build
17-
.sst
18-
19-
# environments
14+
# local env files
2015
.env*.local
2116

22-
npm-debug.log*
23-
yarn-debug.log*
24-
yarn-error.log*
17+
# editor files
18+
.vim

README.md

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# SST Demo Notes App [![Seed Status](https://api.seed.run/serverless-stack/demo-notes-app/stages/prod/build_badge)](https://console.seed.run/serverless-stack/demo-notes-app)
22

3-
The [Serverless Stack Guide](https://sst.dev/guide) is a comprehensive open source tutorial for building and deploying full-stack apps using serverless and React on AWS.
3+
The [SST Guide](https://sst.dev/guide) is a comprehensive open source tutorial for building and deploying full-stack apps using serverless and React on AWS.
44

5-
We create a [note taking app](https://demo.sst.dev) from scratch. Using React.js, AWS Lambda, API Gateway, DynamoDB, and Cognito.
5+
We create a note taking app from scratch — [**demo.sst.dev**](https://demo.sst.dev)
66

77
![Demo App](screenshot.png)
88

9-
This repo is a full-stack serverless app built with [SST](https://github.com/serverless-stack/sst).
9+
We use React.js, AWS Lambda, API Gateway, DynamoDB, and Cognito. This repo is a full-stack serverless app built with [SST](https://github.com/sst/sst).
1010

1111
- The `stacks/` directory defines our AWS infrastructure using AWS CDK.
12-
- The `packages/` directory contains the Lambda functions that power the CRUD API.
13-
- The `frontend/` directory contains the React app.
12+
- The `packages/functions` directory contains the Lambda functions that power the CRUD API.
13+
- The `packages/frontend` directory contains the React app.
1414

1515
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.
1616

@@ -19,52 +19,49 @@ It's a single-page React app powered by a serverless CRUD API. We also cover how
1919
Clone this repo.
2020

2121
```bash
22-
$ git clone https://github.com/serverless-stack/demo-notes-app
22+
$ git clone https://github.com/sst/demo-notes-app
2323
```
2424

2525
Install dependencies.
2626

2727
```bash
28-
$ npm install
28+
$ pnpm install
2929
```
3030

31-
This project refers to a `.env.local` file with a secret that we are not checking in to the repo. Make sure to create one before deploying - https://sst.dev/chapters/handling-secrets-in-sst.html.
32-
33-
#### Developing Locally
34-
35-
Start the [Live Lambda Dev Environment](https://docs.sst.dev/live-lambda-development).
31+
This project uses a secret that we are not checking in to the repo. Make sure to [create one before deploying](https://sst.dev/chapters/handling-secrets-in-sst.html).
3632

3733
```bash
38-
$ npx sst dev
34+
$ pnpm sst secrets set STRIPE_SECRET_KEY <YOUR STRIPE SECRET TEST KEY>
3935
```
4036

41-
Install dependencies for the frontend React app.
37+
#### Developing Locally
38+
39+
Start the [Live Lambda Dev Environment](https://docs.sst.dev/live-lambda-development).
4240

4341
```bash
44-
$ cd frontend
45-
$ npm install
42+
$ pnpmx sst dev
4643
```
4744

48-
Start the React local dev environment from the `frontend/` dir.
45+
Start the React local dev environment from the `packges/frontend/` dir.
4946

5047
```bash
51-
$ npm start
48+
$ pnpm run dev
5249
```
5350

5451
#### Running Tests
5552

5653
From the project root.
5754

5855
```bash
59-
$ npm test
56+
$ pnpm test
6057
```
6158

6259
#### Deploying to Prod
6360

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

6663
```bash
67-
$ npx sst deploy
64+
$ pnpm sst deploy --stage prod
6865
```
6966

7067
---

frontend/.gitignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

frontend/README.md

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)