Skip to content

Simple example projects that show how to use ClaudiaJs

Notifications You must be signed in to change notification settings

aidanbon/example-projects

 
 

Repository files navigation

#Claudia.js Example projects

Background processing (no web API) examples

  • Hello World – shows a trivial Node.js Lambda function and how to set up deployment using Claudia.js
  • Using NPM Modules – a slightly more complex function, shows how to deploy third party dependencies using Claudia.js
  • S3 File Processing – an example service that converts files uploaded to S3; shows how to wire up Lambda to respond to S3 events
  • Website Email Alert – periodically check a URL and send an e-mail if it is not available; shows how to send e-mails using SES and set up Lambda functions as scheduled recurring events
  • Detecting Context – detect if a function was called for development or production, in order to load the right configuration

Examples including a Web API

  • Web API – a simple REST api, shows how to configure and deploy an API Gateway interface along with the Lambda function
  • Web Serving HTML – shows how to change error and success content types and response codes, and how to perform browser redirects
  • Custom Headers – shows how to return custom headers from API responses
  • Custom CORS origins – shows how to control allowed CORS origins/headers
  • DynamoDB CRUD – a simple document store, shows how to use DynamoDB and connect it to a CRUD REST API. Also shows how to configure a single Lambda function to work with different resources for development, testing and production.
  • GraphQL Endpoint – GraphQL CRUD operations, using ES2015 transpiled by Babel, using DynamoDB for persistence.
  • GitHub Repository Labels – a simple image server, shows how to map URL path components to arguments, how to customise response types and how to connect to third party REST APIs

For more information on the Web API configuration syntax, check out the Claudia API Builder project. For more information on Claudia.js options, see the Command Line Usage.

Join the chat at https://gitter.im/claudiajs/claudia

Prerequisites

AWS Lambda currently runs Node.js version 4.3.2 (optionally, you can downgrade to 0.10.36 by using --runtime when creating the function). It's best to use that version for testing. To get started, make sure your credentials are configured. See the ClaudiaJS Getting Started Guide for more information.

About

Simple example projects that show how to use ClaudiaJs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.9%
  • Shell 11.1%