Skip to content

About

CS3300 Project

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

School Stack

An assignment tracker for students. Sign in with your Canvas calendar feed URL and School Stack will show you everything you have due in one simple dashboard.

Requirements

  • Python 3.10 or newer
  • Git

Setup

1. Get the code and install the packages

git clone https://github.com/Leastrio/SchoolStack.git
cd SchoolStack
python -m venv .venv

Activate the virtual environment:

  • macOS / Linux: source .venv/bin/activate
  • Windows (PowerShell): .venv\Scripts\Activate.ps1

Then install the libraries:

pip install -r requirements.txt

There is a Nix Flake provided, for those who use Nix may run nix develop instead.

2. Create the encryption key

SchoolStack has an encrypted database so you must create an encryption key. The following code writes it in a file called db.key which SchoolStack will read from.

python -c "import secrets, pathlib; pathlib.Path('db.key').write_text(secrets.token_hex(32))"

You can also just set the SCHOOLSTACK_DB_KEY environment variable instead of using the file.

3. Create the database

python manage.py migrate

4. Run it

python manage.py runserver

Open http://127.0.0.1:8000/ and paste your Canvas calendar feed URL. To find it, open Calendar in Canvas and click Calendar Feed at the bottom of the right sidebar. At the moment only UCCS Canvas calendar feeds work.

Running tests

python manage.py test app

Test plan 12 uses Playwright and is skipped unless it's installed. To run it too:

pip install -r requirements-dev.txt
playwright install chromium
python manage.py test app

License

MIT. See LICENSE.

About

CS3300 Project

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages