8000 GitHub - yzhanggithub/serverless-todo: React TodoMVC with a Serverless backend
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

yzhanggithub/serverless-todo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serverless-todo

React TodoMVC with a Serverless backend.

It provides a demo integration of React + API Gateway + AWS Lambda + Node.js + Amazon DynamoDB

Deploy with CloudFormation

Prerequisites: Node.js and AWS CLI installed

  • Create an AWS Account and IAM User with the AdministratorAccess AWS Managed Policy
  • Run aws configure to put store that user's credentials in ~/.aws/credentials
  • Create an S3 bucket for storing the Lambda code and store its name in a shell variable with:
    • export S3_BUCKET=<bucket name>
  • Npm install:
    • npm install
  • Build:
    • npm run build
  • Upload package to S3, transform the CloudFormation template:
    • npm run package
  • Deploy to CloudFormation:
    • npm run deploy

Deploy from the AWS Serverless Application Repository

Use

  1. In the API Gateway Console
  2. Navigate to APIs / aws-serverless-repository-serverless-todo / Settings
    1. Hit Add Binary Media Type
    2. Enter */* in the box
    3. Hit Save Changes
    4. Navigate to APIs / aws-serverless-repository-serverless-todo / Resources
    5. Click the Actions dropdown
    6. Click Deploy API
      1. Deployment stage: prod
      2. Deployment description: Adding binary support
      3. Hit Deploy
  3. Navigate to APIs / aws-serverless-repository-serverless-todo / Dashboard
    1. Find the Invocation url, something like https://xxxxxxxxx.execute-api.region.amazonaws.com/Prod/
    2. (You can also set up custom domain name)
  4. Open the invocation url in your browser

Links

License

© 2017-2018 Evan Chiu. This project is available under the terms of the MIT license.

About

React TodoMVC with a Serverless backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.9%
  • HTML 9.1%
0