Skip to content

Implementing

Getting Started

System Requirements

The following tools need to be installed prior to building and deploying:

Note

The commands shown are run from the root directory of the project unless specified otherwise.

The following commands install project dependencies and build eLTI.

1
2
3
4
echo "# Install dependencies"
npm install
echo "# Build project"
npm run build

The following commands deploy and test eLTI in an integration environment.

Note

The CDK deploy outputs.json is used during the test:setup command to setup the configurations and table entries in an integration environment. After setup the integration tests can be run continuously.

Info

For cdk bootstrap, each environment (account/region combination) to which you deploy must be bootstrapped separately.

1
2
3
4
5
6
7
8
echo "# One-time: CDK bootstrap"
npm run cdk bootstrap
echo "# CDK deploy"
npm run cdk -- -- deploy --outputs-file output.json
echo "# One-time: Setup integration test configs and table entries"
npm run test:setup
echo "# Run integration tests"
npm run test:integration

Cleaning up resources

To cleanup the resources created by this project delete the stack that CDK deployed.

Warning

Do not run the following command unless intending to delete the created resources.

1
npm run cdk destroy