Code Monkey home page Code Monkey logo

serverless-todo's Introduction

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, yarn, 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 CODE_BUCKET=<bucket name>
  • Npm install:
    • yarn install
  • Build:
    • yarn build
  • Upload package to S3, transform the CloudFormation template:
    • yarn package
  • Deploy to CloudFormation:
    • yarn 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 browserz

Links

License

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

serverless-todo's People

Contributors

evanchiu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.