Skip to content

xinyu-g/education-today

Repository files navigation

Education Today

Database

Change path and setup parameters in consts.py

# data directory
DATA = 'path to data'

# mysql setup
HOST = 'localhost'
USER = 'username'
PASSWORD = 'password'
DB = 'dbname'

# Schema setup 
REDUCED_SCHEMA = {'tablename': [selected cols]}
SCHEMA = {'tablename': [all data cols]}

Run preprocess.py

args
--reduced: whether to create database on selected columns or on all columns, default true

run

python preprocess.py

Task 1

Run the flask app

export FLASK_APP=edtoday
export FLASK_ENV=development
flask run

Run react frontend

npm start

search by authorId

Input author id and click submit.

Task1

The output for sample author id 2146473740.

output

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages