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-06-02 21:27:34 +02:00
advlabdb Updated pyproject.toml 2021-06-02 21:27:34 +02:00
.gitignore Init commit 2021-03-18 14:53:55 +01:00
config.json Added configUtils 2021-06-02 01:56:49 +02:00
copy_admin_templates.py Cleaned up with flake8 2021-05-17 22:36:24 +02:00
DB.drawio Updated packages, added contact email for students. 2021-05-14 18:53:15 +02:00
poetry.lock Updated pyproject.toml 2021-06-02 21:27:34 +02:00
pyproject.toml Updated pyproject.toml 2021-06-02 21:27:34 +02:00
README.md Updated pyproject.toml 2021-06-02 21:27:34 +02:00
run.py Init commit 2021-03-18 14:53:55 +01:00
testDB.py Added createParts to Semester 2021-06-02 02:13:52 +02:00

Requirements

You need to have Python 3 and Poetry installed. To install Poetry, follow the 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:

# Pay attention to:

To-Do:

  • Rest of admin model views
    • Validators
    • Experiments history for students
    • Check deactivation and deletion of users and roles (Don't lock out admins!)
  • Change semesters label (SS WS)?
  • Assistants space
  • Email integration?
    • 2FA?
  • Students code for getting information?
  • Database scripts
  • Logging
  • Documentation with Sphinx
  • Production server configuration
  • Backups