GitXplorerGitXplorer
m

real-website

public
0 stars
1 forks
0 issues

Commits

List of commits on branch master.
Verified
241a85d2890fb730bcdfc49e1bfd5c9ca29ab771

Merge pull request #4 from mfogel/chore/use-mainline-serverless-cloudfront-invalidate

mmfogel committed 4 years ago
Verified
b59ecbea64b126170360509093c4790a47a21ab5

Use mainline serverless-cloudfront-invalidate

mmfogel committed 4 years ago
Unverified
9ac686935d76038edfb66a1d95d39bfd2c335d85

removed broken navigation links

committed 4 years ago
Unverified
74c9ab52b93659c3c224c247886e8d7295ab1467

updated text to space

committed 4 years ago
Unverified
0464e77cbc007fe5083c61a6f8c8e0b861d3fdbe

fixed some typos

committed 4 years ago
Unverified
1612b39ccb28f5a0a5bbeeff23e243dd3e07449c

fixed some typos

committed 4 years ago

README

The README file for this repository.

REAL-Website

The REAL-Website

Initialization

Run yarn install in the root of the repository to install required packages.

For deployment, you will need command-line access to the AWS environment you wish to deploy to. This is usually this is done by setting up the appropriate AWS credentials file.

Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

yarn deploy

Deploys the website from the build folder. See the serverless documentation for the full set of options available. Note that --stage defaults to production if unset.

At the end of each deploy, cloudfront invalidations are kicked off for non-versioned files. The list of files is declared in serverless.yml and needs to be updated as new non-versioned files are added.

If changes are made to the CloudFront Distribution config in serverless.yml, the deployment will take +15 minutes to complete.

Note that the following two sections of serverless.yml are specific to deployments to the primary AWS Account. If you want to deploy this project to a different AWS Account, you will need to remove or comment out those sections.

  • resources.Resources.WebsiteCloudFrontDistribution.Properties.DistributionConfig.Aliases
  • resources.Resources.WebsiteCloudFrontDistribution.Properties.DistributionConfig.ViewerCertificate