Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Todo Service built with NodeJS using Serverless Framework, running on AWS Lambda

Serverless Todo Service Architecture

Pre-requisites

Get the Serverless Todo Service project

  • Clone Github project : https://github.com/msanand/serverless-todo-api
  • Alternatively, you can install the service locally from Github using the serverless command: serverless install --url https://github.com/msanand/serverless-todo-api
  • Install module dependencies: npm install

Set-up AWS credentials

  • serverless config credentials --provider aws --key <key> --secret <secret>
  • Refer serverless documentation for other options.

Test locally

  • Install dynamodb local: serverless dynamodb install
  • Start Todo Service in offline mode: serverless offline start
  • Test the REST APIs @ http://localhost:4000
  • Test the functions by invoking them locally. E.g. serverless invoke local -f list

Deploy serverless todo service

  • Deploy the Todo Service to AWS Lambda: serverless deploy

Test deployed functions

  • Test the APIs of the deployed service using a REST client. API endpoints can be obtained using the command serverless info
  • Or test deployed functions using serverless invoke -f <function>

Serverless AWS Lambda CLI Reference: https://serverless.com/framework/docs/providers/aws/cli-reference/

About

Serverless Todo API built using NodeJS for AWS Lambda

Resources

License

Releases

No releases published

Packages

No packages published