1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00
No description
Find a file
2021-08-18 20:11:40 +02:00
advlabdb Remvoed unnecessary check in GroupView 2021-08-18 20:11:40 +02:00
.gitignore Updated SemesterModelView and added session exceptions 2021-06-09 01:07:02 +02:00
copy_admin_templates.py Added black and isort 2021-06-02 23:43:41 +02:00
database_input.md Added database_input.md with example 2021-08-18 18:20:47 +02:00
DB.drawio Added description and updated RoleView 2021-08-16 23:47:04 +02:00
example_database_input.txt Added database_input.md with example 2021-08-18 18:20:47 +02:00
poetry.lock User and Assistant harmony 2021-08-16 01:15:19 +02:00
pyproject.toml Changed some int to float 2021-06-30 20:21:44 +02:00
README.md Updated README 2021-08-12 13:09:14 +02:00
run.py Init commit 2021-03-18 14:53:55 +01:00
testDB.py User and Assistant harmony 2021-08-16 01:15:19 +02:00

Code style: black Imports: isort

Requirements

You need to have Python version >=3.9 and Poetry installed. To install Poetry, follow the official instructions here.

Start server

Every following instructions has to be followed every time before starting the server if not mentioned otherwise.

Navigate to the directory advlabdb where the repository is cloned and run:

git pull

to pull the latest changes from the remote repository. Then run:

poetry install

to install (or update) all needed packages to the virtual environment. Now enter the virtual environment:

poetry shell

ONLY IF you are starting the server for the first time without an existing database or you want to !drop and recreate! the database then run:

# CAUTION, running this drops an existing database!
python testDB.py

This (re-)creates the database with some elements for testing.

Now you can start the server by running:

python run.py

This command will print out the URL for accessing the local server. For example:

* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

This URL leads to the home page where you can login with this testing admin account:

To-Do:

  • Calculate final experiment and part mark
  • Deactivate assistants account after a while if not assigned to experiments
  • Email integration + assistant reminder?
  • Students code for getting information and giving feedback
  • Statistics + semester review with alerts
  • Logging
  • Documentation with Sphinx
  • Production server configuration
  • Backups
  • Licence (GNU AGPLv3?)
  • Privacy policy