0.0.1 • Published 4 years ago

webshop-frontend v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Webshop Frontend

TODO: description

Usage

const hotDeals = require('hot-deals');

// TODO: DEMONSTRATE API

Serverless

We use serverless for static content delivering now, this package will be deliverd by cloud front CDN under ggs domain. The serverless config will create an S3 bucket, a cloud front entry and a route 53 entry. The S3 bucket will be configure only accessible by cloud front entry so that we have only one publich entry through route 53 record to cloud front.

To setup:
1. yarn install and make sure serverless fintch plugin has correctly installed. 2. yarn add global serverless for global serverless framework 3. Set up a profile for serverless: serverless config credentials --provider aws --key {your aws key} --secret {you aws secrete} --profile webshop 4. local test is not affected, when you want to deply, run QA-TEST or GO-LIVE command.

FYI, the first deployment, which creates everything, can take as long as 40 minues, if takes less than that, the cloud front might not be ready but it shows ready. You might get a 307 temporal redirect when try to access from CDN, just wait and it should be fine eventually.