Skip to content

anton-paskanny/nodejs-aws-shop-react

 
 

Repository files navigation

React-shop-cloudfront

This is frontend starter project for nodejs-aws mentoring program. It uses the following technologies:

Available Scripts

start

Starts the project in dev mode with mocked API on local environment.

build

Builds the project for production in dist folder.

preview

Starts the project in production mode on local environment.

test, test:ui, test:coverage

Runs tests in console, in browser or with coverage.

lint, prettier

Runs linting and formatting for all files in src folder.

Task 2 - S3 and Cloud Front

task 2.1

S3 bucket link - the 403 error should be shown

Cloud Front link - should be available.

Fro this task S3 bucket and Cloud Front Distribution were created manually.

task 2.2

To deploy S3 bucket, go the cdk-ts folder and run npm run cdk:deploy command. The configuration is described in cdk-ts-stack.ts file.

Whenever you redeploy your website to the S3 bucket, CloudFront will automatically serve the latest content without needing an explicit invalidation.

Links:

S3 bucket link - the 403 error should be shown

Cloud Front link - should be available.

P.S. For both tasks two different buckets and cloud front distributions are used.

About

React Frontend for AWS Developer course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 84.3%
  • JavaScript 15.2%
  • HTML 0.5%