Skip to content

Latest commit

 

History

History
63 lines (37 loc) · 2.15 KB

File metadata and controls

63 lines (37 loc) · 2.15 KB

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.