Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
brettstack committed Apr 24, 2020
1 parent 927511d commit a9b27c4
Show file tree
Hide file tree
Showing 28 changed files with 21,947 additions and 8,528 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Serverless Node.js FullStack starter

## Includes

* Simple React UI hosted with AWS Amplify
* Just enough to get you started. This is mostly a blank canvas bootstrapped with Create React App and simple Auth integration with Amplify and Cognito.
* User authentication with Cognito
* Includes auto-verification of Users to reduce friction in signup flow. See instructions below to remove this and force users to verify their email address.
* Node.js Express API running on Lambda
* DynamoDB Users table
* Upon signing in, a user entry is created in the table if it doesn't yet exist and maps to the user in the Cognito User Pool.

## Getting started

Replace all instances of "myapp" with the name of your application.

Add `myapp_dev` profile to `~/.aws/credentials`. Add `_staging` and `_prod` variants as necessary. It's recommended each developer to have their own account, and for staging and prod to also be deployed to separate accounts.

## Developing

After deploying to your developer AWS account, run `npm run start:api` and `npm run start:ui` separately. Everything except the UI and Lambda Functions use the actual Cloud resources running in your dev account.

## Deploying

Run `sls deploy` to deploy to your dev account. Run `sls deploy --stage staging` or `sls deploy --stage prod` to deploy to staging and prod respectively.

We'll be adding Continuous Deployment soon.

## Customization

## Remove auto-verification

Inside of `serverless.yaml`, remove the `cognitoAutoConfirmUser` function, the `CognitoAutoConfirmUserLambdaCognitoPermission` resource, and the `PreSignUp: !GetAtt CognitoAutoConfirmUserLambdaFunction.Arn` line.
File renamed without changes.
Loading

0 comments on commit a9b27c4

Please sign in to comment.