An open API service indexing awesome lists of open source software.

https://github.com/xkrejc70/mit-mpr-project

MPR - Project Management - Project: Risk Manager
https://github.com/xkrejc70/mit-mpr-project

django risk-management vut-fit

Last synced: 4 months ago
JSON representation

MPR - Project Management - Project: Risk Manager

Awesome Lists containing this project

README

          

# MPR 2022/2023 – Project: Risk Manager

Obtained points: 30/30

# MPR-BE

Install Python and Django. It should be possible to open this project in PyCharm, just open it and add python3
interpreter that has Django installed within. Then you can run the server application:

```
python manage.py runserver
```

For creating database use:
```
python3 manage.py makemigrations --merge //if needed
python manage.py makemigrations
python manage.py migrate
```

-

For inserting data in beta version use:
```
python3 manage.py beta
```
It creates users (admin@mpr.cz, manager@mpr.cz, user@mpr.cz, user2@mpr.cz, user3@mpr.cz), password is always: "Password1"

To delete all data in the database use:
```
python3 manage.py clear
```

app is running at

### Open gates:
- PATH - REQUEST TYPE - RETURN
- user/ - GET - LIST
- login - POST - USER
- logout - GET - HTTP OK
- users - GET - LIST
- projects - GET - LIST
- risk_categories - GET - LIST
- project/ - GET - LIST
- project_roles/ - GET - LIST
- user_risks/ - GET - LIST
- project_risks/ - GET - LIST
- risk/ - GET - LIST
- create_project - POST - LIST
- create_project_role - POST - LIST
- create_risk - POST - LIST
- update_risk - POST - LIST
- update_project - POST - LIST
- update_project_role - POST - LIST

- fake - ANY - LIST - creates new user with email "test" and password "test" to create normal user tou can use
funcion create_fake_user in MPR-BE/app/views.py
- logged - ANY - 200 if user is logged 403 otherwise
- create_risk_category - POST - LIST
- update_risk_category - POST - LIST
- delete_risk_category/ - GET - OK
- delete_project/ - GET - OK
- delete_risk/ - GET - OK
- update_user - POST - LIST
- delete_user// - GET - OK
- all_risks - GET - LIST
- project_user_role - POST - List