40418 - System Analysis & Design
Telenurse is a logistic project for providing healthcare and nursing. It will be very useful to have an integrated system so that both job seekers and people who need nursing and medical services at home can use it and communicate easily with each other. In order to ensure the users of this system, this system should be implemented in such a way that the supervisors and managers in the support center are always aware of the status of all nurses and if there is a problem, they will deal with it as soon as possible.
Name | Student_Number |
---|---|
Mahsa Amani | 97105769 |
Bahar Khodabakhshian | 97105906 |
Dorna Dehghani | 97105939 |
Tarlan Bahadori | 97105809 |
First, you need to have Docker installed. Then follow steps below:
-
Build your docker image using:
$ make build
or
$ docker-compose up --build -d
-
Generate the SQL commands for preinstalled apps using:
$ make makemigrations
or
$ docker-compose exec api python manage.py makemigrations
-
Execute those SQL commands in the database file using:
$ make migrate
or
$ docker-compose exec api python manage.py migrate
-
Create you admin with full access using:
$ make superuser
or
$ docker-compose exec api python manage.py createsuperuser
-
Run your server using:
$ make runserver
or
$ docker-compose exec api python manage.py runserver
-
Finally, open your browser and go to address below to see the project on your localhost.
http://127.0.0.1:8000/
You can use other commands of docker that are available in Makefile easily.
FYI: In case of any errors in building images, turn on your VPN.
To test your code based on test.py files which include the tests you have written, run below command:
$ make tests
or
$ docker-compose exec api python manage.py test