Cascade Hello World (Node.js) Frontend Application ==== See the tutorial: https://deviceops.rigado.com/projects/cascade/en/latest/prototyping/custom-cloud.html ### Deploy to AWS 1. [Configure](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html) AWS CLI SDK. 2. Install [NodeJs >= 8](https://nodejs.org/en/) and [Yarn >= 1](https://yarnpkg.com/en/docs/install) 3. Run in console. ```bash yarn install yarn run deploy --key ``` 4. Wait for CloudFormation Stack creation. ```bash yarn run publish ``` To see deploy information execute. ```bash yarn run describe-stacks ``` ### Run in develop mode Run in console. ```bash yarn run install yarn run start ``` ### Command API `yarn run deploy` Creates AWS CloudFormation Stack. Options - *stackName* - AWS CloudFormation Stack Name default rigado-node-hello-world-frontend - *region* - AWS region **default** *us-east-1* - *key* - Name of an existing EC2 KeyPair to enable SSH access to the instances **required** - *instanceType* - EC2 Instance Type **default** *t2.micro* `yarn run publish` Sync Web to s3. Options - *stackName* - AWS CloudFormation Stack Name default rigado-node-hello-world-frontend - *updateEnv* - Updates .env file by stack data **default** *true* `yarn describe-stacks` Returns the stack description. Options - *stackName* - AWS CloudFormation Stack Name **default** *rigado-node-hello-world-frontend* - *region* - AWS region **default** *us-east-1* `yarn delete` Deletes stack. Once the call completes successfully, stack deletion starts. Options - *stackName* - AWS CloudFormation Stack Name **default** *rigado-node-hello-world-frontend* - *region* - AWS region **default** *us-east-1*