-
Notifications
You must be signed in to change notification settings - Fork 0
Code Architecture
mahsa.ama edited this page Dec 10, 2021
·
1 revision
Here we explain the architecture of code and frameworks we used
Framework: Django, v3.0 Languages: Javascript E6, Html 5, CSS 3
Framework: Django, v3.0 Languages: Python 3.9
We implemented our project with Django framework which is a python-based free and open-source web framework that follows the model–template–views architectural pattern. Our code consists of a project named TeleNurse which has multiple apps like authentication or home.
- core : This folder contains main urls and views in out project. Also contains settings.py which defines settings for whole project.
- apps : This folder contains multiple apps which are authentication, home, users, ads
- apps/static : This folder static files like css and js files which we used them in templates and functions in front.
There is a requirements.txt file in project folder which contains all dependencies we need to run TeleNurse.
Route | Description |
---|---|
/init | This component consists of 2 buttons for Login and Submit Request. |
/login | In this component, nurses can login with their account and store a token for logged in nurse. |
/register | In this component, nurses can create accounts and be authorized. |
/logout | Here users can logout from their accounts and return to login page. |
/submit_ad | In this component we can submit an ad. |
/ | This component is the index page when a user logs in |
/tasks-list.html | Nurse can see his/her tasks list in this page. |
/nurse-location.html | Admin can track nurses from this page. |
/ads-list.html | Nurses and admins can see all ads submitted in this page. |