Skip to content
/TCPublic

twitter-clone in Flask

Notifications You must be signed in to change notification settings

note35/TC

Repository files navigation

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

  1. start the redis server

    service redis start 
  2. Modify 'config/common.cfg'

    debug = True port = 8080 
  3. Simply run

    python web.py 

##Run TC as a formal product

  1. start the redis server

    service redis start (the database is stored in /var/lib/redis/dump.rdb) 
  2. Modify 'config/common.cfg'

    debug = False port = 9000 
  3. Run on init.d

    service TC start service nginx start 
  4. if you want to start on boot

    chkconfig --level 2345 TC on chkconfig --level 2345 nginx on 

##For test

  1. run by test-script (warning, please backup your database before do this)

    cd tests sh pytest.sh 

About

twitter-clone in Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published