Skip to content

ScottyLabs/courses-backend

Repository files navigation

Courses Backend

This is the new backend repository for CMU Courses.

Development

Environment Variables

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 and DATABASE_URL come from Authentik and Railway, respectively.

Running

In this directory, use cargo run --bin <name>, where name is one of datafetcher | server.

Database

You should install sea-orm-cli using cargo install sea-orm-cli. The following instructions assume you are in the project root:

Generating a new migration

sea-orm-cli migrate generate --migration-dir ./crates/migration

Applying migrations

sea-orm-cli migrate up --migration-dir ./crates/migration

Generating entities from database

sea-orm-cli generate entity -o ./crates/database/src/entities

About

Backend for CMU Courses

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE-2.0
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages