1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-19 18:31:16 +00:00
AdvLabDB/README.md

64 lines
1.9 KiB
Markdown
Raw Normal View History

2021-06-02 21:43:41 +00:00
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
2021-05-02 16:55:40 +00:00
# Requirements
2021-06-02 22:09:02 +00:00
You need to have Python version >=3.9 and Poetry installed. To install Poetry, follow the official instructions [here](https://python-poetry.org/docs/#installation).
2021-05-02 16:55:40 +00:00
# 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
```
2021-05-18 13:20:03 +00:00
**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:
2021-05-02 16:55:40 +00:00
```
2021-05-18 13:20:03 +00:00
# CAUTION, running this drops an existing database!
2021-05-02 16:55:40 +00:00
python testDB.py
```
2021-05-18 13:20:03 +00:00
This (re-)creates the database with some elements for testing.
2021-05-02 16:55:40 +00:00
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)
```
2021-05-18 13:20:03 +00:00
This URL leads to the home page where you can login with this testing admin account:
- email: admin@protonmail.com
- password: admin
# To-Do:
- Calculate final experiment and part mark
2021-07-01 17:43:59 +00:00
- Deactivate assistants account after a while if not assigned to experiments
2021-08-12 11:09:14 +00:00
- Email integration + assistant reminder?
2021-07-12 17:49:10 +00:00
- Students code for getting information and giving feedback
2021-08-12 11:09:14 +00:00
- Statistics + semester review with alerts
2021-05-18 13:20:03 +00:00
- Logging
- Documentation with Sphinx
- Production server configuration
- Backups
2021-06-02 22:09:02 +00:00
- Licence (GNU AGPLv3?)
- Privacy policy