You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
4
4
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)
6
6
7
7

8
8
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).
10
10
11
11
- 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.
14
14
15
15
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.
16
16
@@ -19,52 +19,49 @@ It's a single-page React app powered by a serverless CRUD API. We also cover how
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).
36
32
37
33
```bash
38
-
$ npx sst dev
34
+
$ pnpm sst secrets set STRIPE_SECRET_KEY <YOUR STRIPE SECRET TEST KEY>
39
35
```
40
36
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).
42
40
43
41
```bash
44
-
$ cd frontend
45
-
$ npm install
42
+
$ pnpmx sst dev
46
43
```
47
44
48
-
Start the React local dev environment from the `frontend/` dir.
45
+
Start the React local dev environment from the `packges/frontend/` dir.
49
46
50
47
```bash
51
-
$ npm start
48
+
$ pnpm run dev
52
49
```
53
50
54
51
#### Running Tests
55
52
56
53
From the project root.
57
54
58
55
```bash
59
-
$ npmtest
56
+
$ pnpmtest
60
57
```
61
58
62
59
#### Deploying to Prod
63
60
64
61
Run this in the project root to deploy it to prod.
0 commit comments