Skip to content

Flask web app that uploads csv file into mysql database

Notifications You must be signed in to change notification settings

olgarose/csv_upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSV Upload

Flask web application that uploads csv into mysql database. Validates csv file has columns 'parent', 'child', and 'quanity' to represent edges on a graph.

Getting started

For security, the config module was removed.

To run the application create a config directory with an __init__.py file.

In the __init__.py save the variable DATABASE_URI = 'mysql://<user_name>:<password>@<end_point>/<database_name>'

Replace the variable with your database info.

Running application

Clone or download repo and go to source directory.

Install virtualenv for Python 2.7:

pip install virtualenv

Create your virtual environment:

virtualenv venv

Activate your virtual environment:

source venv/bin/activate

Install requirements:

pip install -r requirements.txt

Run application:

python application.py

Head to http://127.0.0.1:5000/

Built With

  • Flask - The web framework used

About

Flask web app that uploads csv file into mysql database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published