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-05-17 21:48:12 +02:00
advlabdb Added admin index template 2021-05-17 21:48:12 +02:00
.gitignore Init commit 2021-03-18 14:53:55 +01:00
copy_admin_templates.py Added the copy_admin_templates script 2021-05-17 18:49:56 +02:00
DB.drawio Updated packages, added contact email for students. 2021-05-14 18:53:15 +02:00
poetry.lock Updated packages, added contact email for students. 2021-05-14 18:53:15 +02:00
pyproject.toml Added Flask-Admin and Flask-DebugToolbar 2021-04-19 01:33:46 +02:00
README.md Updated packages and readme 2021-05-06 17:35:17 +02:00
run.py Init commit 2021-03-18 14:53:55 +01:00
testDB.py Updated packages, added contact email for students. 2021-05-14 18:53:15 +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

If you are starting the server for the first time or you want to drop and recreate the database then run:

python testDB.py

This 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. Now login and then navigate to /admin as shown on the home page after login.

Pay attention to:

  • If you create a semester, then you have to set it as the active semester for you as current user. For that, navigate to the home page / (or click on the Links drop down menu in the navigation bar then Home). Then click on the Semester drop down menu in the navigation bar to choose the semester you have created to be the active one. Then navigate back to /admin. This will be fixed soon.
  • Many "model views" are not done yet. There is still a lot to be done.

Documentation

The documentation will be done using Sphinx later.