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_URL
andDATABASE_URL
come 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/migration
sea-orm-cli migrate up --migration-dir ./crates/migration
sea-orm-cli generate entity -o ./crates/database/src/entities