coverage: 93%
#TC
TC is a simple message board writen in Flask, which is using for training intern.
In this project, we use three import module 'flask', 'wtform', 'blueprint'
##Run TC in debug mode
start the redis server
service redis startModify 'config/common.cfg'
debug = True port = 8080Simply run
python web.py
##Run TC as a formal product
start the redis server
service redis start (the database is stored in /var/lib/redis/dump.rdb)Modify 'config/common.cfg'
debug = False port = 9000Run on init.d
service TC start service nginx startif you want to start on boot
chkconfig --level 2345 TC on chkconfig --level 2345 nginx on
##For test
run by test-script (warning, please backup your database before do this)
cd tests sh pytest.sh