Python Flask API
test_teams - 10 static entries are present in this table
test_teams_rand - to keep log of other possibilities of data in test_teams table
Install virtualenv via pip:
$ pip install virtualenv
Test your installation
$ virtualenv --version
Create a virtual environment for a project:
$ virtualenv my_project
To begin using the virtual environment, it needs to be activated
$ source my_project/bin/activate
Install the requirements.txt file for dependencies
$ pip install -r requirements.txt
Run the files
$ python database_controller.py
$ python database_extract.py
Insert 10 random rows - http://flask-env.vcvtfj4hvp.us-east-2.elasticbeanstalk.com/insert_random
Populate Next 10 rows - http://flask-env1.xxwp3niah9.us-east-2.elasticbeanstalk.com/next10
JSON to display on Front-End - http://flask-env1.xxwp3niah9.us-east-2.elasticbeanstalk.com/display10
Insert 10 random rows - http://127.0.0.1:5000/insert_random
Populate Next 10 rows - http://127.0.0.1:5001/next10
JSON to display on Front-End - http://127.0.0.1:5001/display10