Skip to content

dirtmerchant/aws-dev-hour-backend

 
 

Repository files navigation

AWS Dev Hour - Series 1 Demo Application (Backend)

Type: Demo

AWS Dev Hour - On Twitch

Do you have the skills it takes to build modern applications that are distributed and designed for scale and agility? If you’re interested in learning to build cloud native applications and architecture practices, join us for AWS Dev Hour: Building Modern Apps, a weekly Twitch show presented by AWS Training and Certification. Built by developers for developers, the series offers a hands-on approach. Over the course of 8 episodes, AWS expert hosts Ben Newton and May Kyaw will take you through the end-to-end build of a serverless application in the AWS cloud. You’ll have the chance to learn by doing, following along with the hosts and developing a cloud-native application using the AWS free tier. You’ll learn best practices for modern applications and better understand how AWS cloud-native applications differ from on-premises. Throughout the series, you’ll receive code, white papers, links to documentation, and other resources to help you progress.

Architecture

architecture-screenshot

Episodes

During each episode, we will be progressively building this full-stack application together. Please see the following URL for schedule and episode details:

AWS Dev Hour Schedule

Services used during the series:

  • Amazon Cognito
  • Amazon S3
  • Amazon Simple Queue Service
  • AWS Lambda
  • Amazon DynamoDB
  • Amazon Rekognition
  • AWS Cloud Development Kit
  • Amazon API Gateway
  • AWS CodeBuild
  • AWS CodePipeline

Useful commands

  • npm install install packages
  • cdk synth emits the synthesized CloudFormation template
  • cdk deploy deploy this stack
  • cdk diff compare deployed stack with current state

The cdk.json file tells the CDK Toolkit how to execute your app.

Prerequisites

All CDK developers need to install Node.js 10.3.0 or later, even those working in languages other than TypeScript or JavaScript. The AWS CDK Toolkit (cdk command-line tool) and the AWS Construct Library run on Node.js. The bindings for other supported languages use this back end and tool set. We suggest the latest LTS version.

aws configure
npm -g install typescript
npm install -g aws-cdk

If you have not yet done so, you will also need to bootstrap your account:

cdk bootstrap aws:https://ACCOUNT-NUMBER-1/REGION-1

for example:

cdk bootstrap aws:https://123456789012/us-east-1

For further information, please see:

https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html

https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html

Getting Started

  1. npm install

  2. cdk deploy

A 'cdk deploy' will deploy everything that you need into your account

  1. You may now test the backend by uploading an image into your Amazon S3 bucket.

Cleanup

To clean up the resources created by the CDK, run the following commands:

aws s3 rm --recursive s3:https://{imageBucket}
cdk destroy

(Enter “y” in response to: Are you sure you want to delete (y/n)?).

Tweaks

Rekognition confidence is currently set in the rekognition lambda.

minConfidence = 50

Feel free to adjust and experiment. If you change, make sure to perform another 'cdk deploy' to update the lambda function.

Contributions

We would encourage all of our AWS Dev Hour viewers to contribute to this project. For more details, please refer to 'CONTRIBUTING.md'.

License

This software is licensed under the Apache License, Version 2.0.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 48.1%
  • TypeScript 46.1%
  • JavaScript 5.8%