Skip to content

Latest commit

 

History

History
91 lines (53 loc) · 3.53 KB

File metadata and controls

91 lines (53 loc) · 3.53 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.

client:deploy, client:deploy:nc

Deploy the project build from dist folder to configured in serverless.yml AWS S3 bucket with or without confirmation.

client:build:deploy, client:build:deploy:nc

Combination of build and client:deploy commands with or without confirmation.

cloudfront:setup

Deploy configured in serverless.yml stack via CloudFormation.

cloudfront:domainInfo

Display cloudfront domain information in console.

cloudfront:invalidateCache

Invalidate cloudfront cache.

cloudfront:build:deploy, cloudfront:build:deploy:nc

Combination of client:build:deploy and cloudfront:invalidateCache commands with or without confirmation.

cloudfront:update:build:deploy, cloudfront:update:build:deploy:nc

Combination of cloudfront:setup and cloudfront:build:deploy commands with or without confirmation.

serverless:remove

Remove an entire stack configured in serverless.yml via CloudFormation.

Notes to me

  1. I had to remove PublicRead because this intefereed with ACL's
  2. Ran cloudfront:setup to setup cloudfront
  3. Ran cloudfront:build:deploy to deploy to cloudfront

Task 2 Links

S3 bucket has been created and configured properly. The app has been uploaded to the bucket and is available though the Internet. Nothing else has been done. (Link to S3 bucket/website is provided. There is no Pull Request in the YOUR OWN frontend repository.)

https://first-bucket-e.s3.amazonaws.com/index.html

In addition to the previous work a CloudFront distribution is created and configured properly and the site is served now with CloudFront and is available through the Internet over CloudFront URL, not S3-website link (due to changes in bucket’s policy...). (Link to CloudFront website is provided. S3-website shows 403 Access Denied error. There is no Pull Request in the YOUR OWN frontend repository.)

https://dy3edsyy8y7ma.cloudfront.net

30 - Serverless-finch and serverless-single-page-app plugins are added and configured. The app can be built and deployed by running npm script command. (Link to CloudFront website is provided. PR with all changes is submitted in the YOUR OWN frontend repository and its link is provided for review.)

https://doa79n45bgdsw.cloudfront.net