This is the new backend repository for CMU Courses.
Copy the .env.example file to .env.
- To get a
CANVAS_ACCESS_TOKEN, navigate to the Canvas settings page and press+ New Access Token. - The
OIDC_ISSUER_URLandDATABASE_URLcome from Authentik and Railway, respectively.
In this directory, use cargo run --bin <name>, where name is one of datafetcher | server.
You should install sea-orm-cli using cargo install sea-orm-cli. The following instructions assume you are in the project root:
sea-orm-cli migrate generate --migration-dir ./crates/migrationsea-orm-cli migrate up --migration-dir ./crates/migrationsea-orm-cli generate entity -o ./crates/database/src/entities