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
- Host: GitHub
- URL: https://github.com/xkrejc70/mit-mpr-project
- Owner: xkrejc70
- Created: 2023-05-06T14:09:29.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T14:16:33.000Z (over 2 years ago)
- Last Synced: 2025-03-16T14:50:23.322Z (7 months ago)
- Topics: django, risk-management, vut-fit
- Language: TypeScript
- Homepage: https://www.fit.vut.cz/study/course/MPR/.en
- Size: 2.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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