Skip to content

ritesh-deshmukh/Bito-Flask-API

Repository files navigation

Bito Visualization API

Deployed to AWS Elastic Beanstalk

Python Flask API

MySQL Database on Amazon RDS

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

To test on your local machine

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

Relevant API Endpoints on AWS

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

Relevant API Endpoints Locally

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

Front End Link

About

Python Flask REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages