Apps can now do a lot more than export and settings buttons. A DashboardPage adds a page of your own to Examplary, in the main sidebar or the account settings, with server-side actions your component calls. A CronJob runs a hook on a schedule for every workspace that has your app. And storage keeps JSON documents and files per workspace, per user or for the whole app.
app.addCapability(
new CronJob({
id: "sync-rosters",
schedule: "0 3 * * *",
action: async () => {
const linked = storage.org.collection("linked-courses");
await syncRosters(settings.apiToken, linked);
},
}),
);To try it all out, run npx @examplary/cli dev in your app's folder. It installs a private copy in your workspace, updates it on every save, and the developer toolbar shows your hook calls, cron jobs and stored data. More in trying out your app.