Photo by Kari Shea on Unsplash

Creating Simple REST API Using Flask (Part 1)

Step-by-step tutorial on how to create simple REST API using Python, Flask and Heroku

Table of Contents

Application diagram

Setting Up Heroku Application

Heroku Dashboard
Creating new app on Heroku
Adding Heroku Postgres Add-ons to app
Heroku Postgres credentials

Adding Data to Heroku PostgreSQL Database Using SQLAlchemy

Importing modules
Read data-sets into dataframes and store it all into a list
A little bit of data preprocessing
Exporting data to database
Number of database’s row and table exporting data
List all tables in database

A beginner venturing into data science