diwyanshuprasad19 / janitri

0 stars 0 forks source link

Django-Assignemnt

Api assignemnt by Janitri

Technologies Used:

Additional Python Modules Required::

Goal:Create Endpoint

Prerequisite

Python

Installing

Step by step commands on how to run this project on your computer

1)- Install Django

 pip install django

2)- Create django RestFramework

pip install djangorestframework

5)- Execute below commands

python manage.py makemigrations
python manage.py migrate

Note: Above commands should be executed if there is any db level changes

6)- Create superuser for admin access and follow instruction, if not created one

python manage.py createsuperuser

Running the server

python manage.py runserver


Assumptions

Running the Test scripts

There are 4 files named login, registration, Patient and Vitals in the tests folder.In each file there will be classes.To executetest cases run the below commnad

python manage.py test api.tests.[classname]