The configuration deployment consists of 3 simple steps:
- Configure the AWS Credentials on your local machine.
- Configure the
easy-genomics.yamlshared settings and back-end specific settings. - Deploy the Easy Genomics solution.
This guide covers obtaining the source code and deploying a dev / pre-prod environment. Make sure you have satisfied
the Prerequisites and Preparation first.
- AWS credential setup → ../deployment/aws-setup.md
easy-genomics.yamlconfiguration → ../deployment/configuration.md- Production deployment → ../deployment/production.md
Once the prerequisites and preparation steps are complete, run the following commands to obtain the Easy Genomics project source code and install the project dependencies.
-
Clone this Github Repository to your local O/S environment:
$ git clone https://github.com/twobulls/easy-genomics.git -
Change directory into the Easy Genomics project root directory (referred to as
${easy-genomics root-dir}from henceforth):$ cd easy-genomics [easy-genomics]$ -
Run
pnpm installto install the initial project dependencies, includingprojenfor project and dependency management.[easy-genomics]$ pnpm install -
(Development only) Run
pnpm projento synthesize/update the project files managed byprojen. This step is typically only needed when you are changing project configuration in.projenrc.ts, not as part of a normal production deployment:[easy-genomics]$ pnpm projen -
(Development only) Run
pnpm projen installto install all the defined.projenrc.tsdependencies for compilation. This is intended for local development/bootstrapping; it is not required and generally should not be run immediately before a productionbuild-and-deploy-no-tests, because it can regenerate configs and dependencies:[easy-genomics]$ pnpm projen install
After configuring your AWS credentials and
easy-genomics.yaml, deploy the entire Easy Genomics solution to AWS using the
following command.
[easy-genomics]$ pnpm run build-and-deploy-no-tests
build-and-deploy-no-tests builds and deploys the whole solution without running the unit test suite, which a deploy
does not need. The suite is memory-hungry, and on a machine with less RAM than a CI runner the operating system has
killed it part-way through, failing the deploy before anything was deployed. The release you are deploying has already
been tested in DEPT's release pipeline.
Once the deployment is completed, it will output the ApplicationUrl which can then be accessed from your web browser.
[easy-genomics]$ pnpm run build-and-deploy-no-tests
...
Outputs:
dev-main-front-end-stack.ApplicationUrl = https://abcdef12345.cloudfront.net
dev-main-front-end-stack.HostingBucketName = {app-domain-name}
- NOTE: If the
aws-hosted-zone-idand/or theaws-certificate-arnare not defined in theeasy-genomics.yaml, theApplicationUrlreturned will be the CloudFront Distribution URL.
Finally, use the ${easy-genomics root-dir}/config/easy-genomics.yaml file's configured sys-admin-email and
sys-admin-password (or org-admin-email / org-admin-password on non-prod) to sign in and verify the deployment.
Next step: follow Your first workflow run for the full platform journey (organisation, lab, integrations, data upload, and workflow run).
Once you have completed an initial deployment of the Back-End and Front-End application logic, you can subsequently use
the build-and-deploy-no-tests short-cut command from the ${easy-genomics root-dir} directory to conveniently
complete both Back-End and Front-End deployments in one command.
e.g.
[easy-genomics/packages/front-end]$ cd ../../
[easy-genomics]$ pnpm run build-and-deploy-no-tests # Deploys both Back-End and Front-End logic using the existing easy-genomics.yaml settings