Periodical synchronization of people enrolled as "antagna" in the current Registration Period to the Canvas LMS.
-
Copy the
.env.in
file and name it as.env
cp .env.in .env
Open the newly created
.env
and fill it with the required data. This file will be read on startup as environmental variables. -
Run
npm run dev
to start the app in development mode
- Set the environmental variables as written in the
.env.in
file - Run
npm start
Keep in mind that output logs are in JSON format and could be therefore a bit unreadable without the correct tools.
The app is divided in the following components (each in one directory):
app.js
starts the application and all the componentslib
contains all the logic needed in the appcron
manages the periodical taskserver
contains an express server. This server is only used to dump information about the status of the app.
💡 Quick start: run npx madge app.js --image graph.svg
in the root of this project to get an overview of the internal dependencies.