Deployments
Initial deployment
Code Genie apps include a simple command to enable one-command setup:
npm run init:devThis command does the following:
- Installs NPM dependencies (
npm i) - Creates a new entry in the AWS Credentials File
~/.aws/credentialscalledyour-app-name_devusing credentials copied from thedefaultprofile. - Bootstraps CDK in the AWS account (
cdk bootstrap) - Deploys to AWS (
npm run deploy:dev) - Copies CloudFormation/CDK outputs to local
.envfiles for running the UI and API locally (npm run copy-outputs-to-dotenv:dev) - Opens the live version of the web app in your browser.
Deploying updates
After the initial deployment, you can deploy changes to AWS with:
npm run deploy:devDeploying to staging and production
Similar commands exist for staging and prod:
npm run init:devnpm run deploy:devnpm run init:stagingnpm run deploy:stagingnpm run init:prodnpm run deploy:prodCI/CD
See the CI/CD Pipeline page for more details.