Skip to content

Latest commit

 

History

History
48 lines (27 loc) · 3.46 KB

File metadata and controls

48 lines (27 loc) · 3.46 KB

The Project

The Brief

Our client wants to build up a subscriber list to market their new product. The client is paying for AWS and wants us to use it for this project. You are a full-stack engineer and your project manager has tasked you with finding a way to store all the subscriber's emails and creating a way to capture subscriber emails.

The frontend team has come up with a couple of prototypes for the frontend form. You could either wire up one of their prototypes or roll your own!

Your project manager recommends you use the command cdk init to save time. AWS CDK converts into JSON/YAML so the language you implement this feature in is completely up to you! If you need assistance with setting up the project the backend team has a suggested configuration for this type of project. You can browse or copy the Backend Starter that has the set up done for you if you don't want to start completely from scratch.

Requirements:

  • Wire up a form for users to input their email
  • Handle user input with AWS Lambda
  • Store that email on AWS using DynamoDB

Stretch Goals

  • Display emails on the page
  • Delete emails from the list
  • Add the company logo to the form

Project Steps

  1. Create a DynamoDB table inside your Backend Construct (lesson 16)

  2. Write method for adding Emails to DynamoDB in Lambda function (lesson 19)

  3. In the lambda function, call your "add email" method and create a response whenever there is an HTTP POST request (lesson 19)

  4. Connect your lambda function to your backend (lesson 17)

  5. Create an API gateway for your lambda function (lesson 08)

  6. Create a frontend that takes user input and POSTs to your AWS endpoint (lesson 22)

  7. Add CORS headers to createResponse method in lambda function (lesson 22)

  8. Deploy your front end to AWS (lesson 24)

Form Prototypes

Backend