Skip to content

Flask framework demo with msyql database, using python3.

License

Notifications You must be signed in to change notification settings

rootrl/Flask-demo-with-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-demo-with-mysql

Flask framework demo with msyql database, using python3.

Why this project?

I build this project for learning english(I need a web project to display content of 《new concept english》).

And I want have a try with python and flask.

Requirerement

pip3 install -r  requirement.txt

Database

First: create your database, and modify the config item in config.py.

the follow the commands:

# init
python3 manage.py db init

# migrate
python3 manage.py db migrate

# create table
python3 manage.py db upgrade

Run

./start.sh

Demo

http://66.42.40.22:8989/article/show?id=1

About

Flask framework demo with msyql database, using python3.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published