LTI Provider for launching an Ilios dashboard
To build and deploy run the following in your shell:
sam build
sam deploy --guidedThe SAM CLI can also emulate your application's API. Use the sam local start-api to run the API locally on port 3000.
lti-server$ sam local start-api
lti-server$ curl http://localhost:3000/See the AWS SAM developer guide for an introduction to SAM specification, the SAM CLI, and serverless application concepts.
To simplify troubleshooting, SAM CLI has a command called sam logs. sam logs lets you fetch logs generated by your deployed Lambda function from the command line. In addition to printing the logs on the terminal, this command has several nifty features to help you quickly find the bug.
NOTE: This command works for all AWS Lambda functions; not just the ones you deploy using SAM.
lti-server$ sam logs -n DashboardFunction --stack-name lti-server --tailTests are defined in the tests folder in this project.
$ npm install
$ npm run test$ npm run cli -- --help
Usage: `npm run cli <ltiAppUrl> <apiServer> <apiNameSpace> <iliosSecret> <userId>`
Generate an LTI login URL with a JWT token
Arguments:
ltiAppUrl LTI application URL
apiServer API server URL
apiNameSpace API namespace
iliosSecret Ilios secret
userId User ID
Options:
-h, --help display help for command