Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

note35/TC

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.