Skip to content

darker-software/portfolio-site-backend

Repository files navigation

Portfolio Backend

This is the repository for any server based calls for my Portfolio Site

It is using AWS CDK to define a stack with the relevant resources

AWS Resources

  • Send Email Lambda
    • This will send emails from the contact form using AWS SES
  • Captcha Verify Lambda
    • This validates the captcha on a request with HCaptcha and acts as an authorizer function on the API Gateway
  • Lambda Layer
    • This contains common Node dependencies accross the lambda's, currently containing:
      • Dotenv
      • Aws-sdk
      • Aws-xray-sdk
  • Api Gateway
    • Endpoints for the app to call to process requests
  • IAM Roles
    • For resources to call relevant services i.e. AWS SES

Stack Diagram

graph TD
  A[API Gateway] -->|Custom Authorizer| B[Captcha Authorizer Lambda]
  B -->|POST /sendEmail| C[Email Lambda]
  B --> D[HCaptcha Verification]
  C --> E[Amazon SES]
  B --> F[Lambda Layer]
  C --> F[Lambda Layer]
  F[Lambda Layer] -->|Dependencies| G[aws-xray-sdk, aws-sdk, dotenv]
Loading