Skip to content

FengNongtheWindCoder/flaskblog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flaskblog

Learn python and flask,just a tony blog system
It is same as SpringBlog,but implemented differently

#Use:

##Backend:

  1. Flask
  2. Flask-SQLAlchemy ORM for mysql
  3. Flask-WTF
  4. Flask-Login

##Web:

  1. Jquery-1.11.1
  2. Bootstrap-3.2.0
  3. Very simple editor qeditor

#Finish:
The basic function of blog:

Post:read,write,edit,delete
Category:read,add,edit,delete
Comment:read,add,delete

#Todo:

  1. Review python code and think more
  2. Write front with AngularJS instead of jQuery

#Deploy
Create Schema on MySql,edit database setting in config.py
Then run init_db.py to init database

Use gunicorn and supervisor to deploy this project on Ubuntu
Install gunicorn and supervisor:

$ sudo pip install gunicorn
$ sudo pip install supervisor

Copy supervisor config file:

$ sudo cp flaskblog.conf /etc/supervisor/conf.d/

Restart supervisor and start flaskblog:

$ sudo supervisorctl reload
$ sudo supervisorctl start flaskblog

Look status:

$ sudo supervisorctl status

#Connect me Life is short,you need python! if you are interested in this project, Join us!

About

Learn python and flask,just a tiny blog system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published