Skip to content

flockchat/flock-todo-lambda

Repository files navigation

flock-todo-lambda

A simple todo app for Flock using AWS Lambda and API Gateway.

ToDo App Architecture

ToDo app architecture

Installation

1. Download source

git clone [email protected]:flockchat/flock-todo-lambda.git

2. Install dependencies

cd flock-todo-lambda
npm install

Create FlockOS app

Create Flock app

Configure FlockOS app

Configure Flock app

4. Setup RDS and create your tables

Use schema.sql for this.

5. Update config.js with app id, secret and RDS credentials

On creating FLockOS app, you will get app id and secret like following:

FlockOS app details

Put these and RDS credentials in config.js file

6. Setup the Lambda function on AWS

Choose basic hello-world lambda function template on aws

Hello-world lambda

Configuring lambda function

Use the "Upload .ZIP file' for 'Code entry type' and upload the zip of whole source code in the 'Function package' option.

Lambda configuration

7. Setup API Gateway

Create resources and methods on API gateway

Make sure you check "use Lambda Proxy Integration" checkbox.

API gateway configuration

Deploy API gateway

You will get your API endpoint URL after deployment (the one shown in red box below).

API gateway deployment

8. Install and test your app

About

Todos in Flock using AWS Lambda and API Gateway

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •