- Clone this repo
npm run ito install req'd dependenciesnpm startto start the development server
The dev server uses www/dev.html as it's index.
Create a .env file in the project root with the following variables:
PROD_ASSET_PATH=<Path to CDN root>
AWS_KEY=<AWS account public key>
AWS_SECRET=<AWS account secret>
AWS_REGION=<AWS S3 bucket region>
AWS_S3_BUCKET_NAME=<AWS S3 bucket name>
Then run the following commands
npm run deployto build and hash bundles and deploy to the CDNnpm run prodto run the development server
The dev server uses www/index.hbs as it's index.
The project is configured to deploy assets to an Amazon Cloudfront CDN. If you just want to serve assets from the development server set your PROD_ASSET_PATH .env variable to /assets_rev/ and remove the AWS .env variables. Then instead of the npm run deploy command just use:
npm run buildto build compressed asset bundlesnpm run revto hash assetsnpm run prodto run the development server