Collect course feedback anonymously. More info here
-
Install Docker Desktop
-
Install ngrok - Allows us to connect from Canvas to localhost via SSL
- Run ngrok to expose localhost:3000 via SSL:
ngrok http 3000 - We will use the HTTPS URL when creating the Canvas Developer Key
- Run ngrok to expose localhost:3000 via SSL:
-
LTI 1.3 Authentication Setup
- Login to Your Canvas instance as an admin.
- Create LTI Key through:
Admin -> Developer Keys -> +Developer Key -> +LTI Key - Add Key Settings:
- Select
Paste JSONunderConfigure -> Method. Copy fromlti13-config.json, making sure to update the below parameters"public_jwk": { "e": "<E>", "n": "<N>", "alg": "<ALG>", "kid": "<KID>", "kty": "<KTY>", "use": "<USE>" } "target_link_uri": "https://<NGROK_HOST>", "oidc_initiation_url": "https://<NGROK_HOST>/api/auth/lti"
- Update Key Name:
<Your Name> Feedback Key - Update Redirect URIs:
https://<NGROK_HOST>/api/auth/lti
- Select
-
Update Backend Environment Variables:
- Copy
backend/dev.env.templateto a new file namedbackend/dev.env - Update variables flagged with
TODO
- Copy
-
Update Frontend Environment Variables:
- Copy
docker-compose.yml.templateto a new file nameddocker-compose.yml - Update variables flagged with
TODO
- Copy
-
Build & Run App at the root project level:
docker-compose up- Code changes are automaticaly refreshed in dev mode.
- Restarts are only needed when adding new dependencies or updating environment variables
- After adding new dependencies, run the following: 1)
docker-compose down2)docker-compose up --build
-
Install App in Test Course:
- Navigate to
Settings -> Apps -> View App Configurations -> +App - Under configuration type, select
By Client IDand paste your Developer Key ID - You may need to enable the tool visibility under:
Settings -> Navigation
- Navigate to
-
Follow steps 2-4 from the Dev Setup (Docker Compose) section the same as before.
-
Update Frontend variables
- Copy
frontend/.env.local.templateto a new file namedfrontend/.env.local - Complete all missing information
- Copy
-
Build and run app (frontend and backend)
- Navigate to the location of the
frontendfolder in a terminal. If not done already, make sure the packages have been installed usingnpm install. - Run
npm run devto start the application frontend - In another terminal, navigate to the location of the
backendfolder. If not done already, make sure the packages have been installed usingnpm install. - Run
npm run devor (npm run win-devif using windows) to start the application backend
- Navigate to the location of the
-
Install App in Test Course (same steps as Docker compose):
- Navigate to
Settings -> Apps -> View App Configurations -> +App - Under configuration type, select
By Client IDand paste your Developer Key ID - You may need to enable the tool visibility under:
Settings -> Navigation
- Navigate to