awesome-release / aws-cdk-react

Deploy an API with aws-cdk and use it in a react frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS-CDK with a React frontend

This demo showcases a simple aws-cdk and react application and is intended to be used on Release as an example. In this scenario we are creating an api gateway and lambda function that pulls images from the NASA api. The api url output from the cdk deployment is sent to a shared volume at /app/public which is then parsed and used by the frontend.

Release Setup

TBD

Docker Setup

  1. Create a .env file for the frontend and in /cdk for the cdk portion by following the .env.example template files in each directory.

  2. Run docker-compose up -d

  3. Visit http://localhost:3000

See the cdk readme for additional information about the stack.

Expected Result

About

Deploy an API with aws-cdk and use it in a react frontend


Languages

Language:JavaScript 61.5%Language:HTML 19.2%Language:CSS 10.4%Language:Shell 6.9%Language:Dockerfile 2.0%