Skip to content

NormanLo4319/World_Happiness_Database_API

Repository files navigation

World Happiness Database API

World Happiness Database API (Backend) Final Product: https://world-happiness-database.herokuapp.com

Objective:

This project creates a web API for requesting country level data on several aggregate variables, such as Happiness Scores, Gini Coefficient, GDP, population, GDP per Capita, and geographic location (lat & lon).

Data:

The data was collected from different sources and it was cleaned in Python before storing to SQLite database.

Application Setup:

Stage 1: Data Extraction and Cleaning

Using Python Pandas for data extraction and cleaning process.

Stage 2: Storing Data into SQLite Database

Using SQLAlchemy creates and stores cleaned data into SQLite database.

Stage 3: Create Application

Using Flask creates application connect to the SQLite database and returns to the API request with json format data.

Stage 4: Create Database Dashboard

Creating a simple home page dashboard for the API request by html and css.

Stage 5: Deploying the Application

Deploying the web application on Heroku.

Final Product:

Starting Page: starting page

API Documentation Page: api request

Return JSON from Request:
json return

Copyright © 2020 Norman Lo

About

World Happiness Database API (Backend)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published