This repo contains a web application that obtains the heights in inches of the NBA players by querying the Endpoint Mac Eight. it ask the user to enter the add up of two players height in inches
-
Set up and activate the local development environment.
-
Install the requirements using pip:
pip install -r requirements.txt
-
Setup local PostgreSQL database and use django migrations
python NBA/manage.py makemigrations python NBA/manage.py migrate # This will setup the local database based on django models. Make sure you are in the same directory as manage.py file
-
Fetch and store information manually by going to endpoint below an click on PUT
-
Run the server as follows:
python Nba/manage.py runserver
-
If your development server is at localhost then you can access the api by using: