Skip to content

mahsaama/TeleNurse-django

Repository files navigation

TeleNurse

40418 - System Analysis & Design

Description

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.

Contributers

Name Student_Number
Mahsa Amani 97105769
Bahar Khodabakhshian 97105906
Dorna Dehghani 97105939
Tarlan Bahadori 97105809

How to run the project

First, you need to have Docker installed. Then follow steps below:

  1. Build your docker image using:

    $ make build

    or

    $ docker-compose up --build -d
  2. Generate the SQL commands for preinstalled apps using:

    $ make makemigrations

    or

    $ docker-compose exec api python manage.py makemigrations
  3. Execute those SQL commands in the database file using:

    $ make migrate

    or

    $ docker-compose exec api python manage.py migrate
  4. Create you admin with full access using:

    $ make superuser

    or

    $ docker-compose exec api python manage.py createsuperuser
  5. Run your server using:

    $ make runserver

    or

    $ docker-compose exec api python manage.py runserver
  6. 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.

How to run the tests

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