Skip to content

yupbank/code

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Douban CODE

Prepare

  • mysql # default port
# import code/databases/schema.sql to database `valentine`
$ mysql -uroot -e 'create database valentine;'
$ mysql -uroot -D valentine < code/databases/schema.sql
# modify settings according to database in your computer
change mysql connection with passwd as u define in
code/config.py
  • memcached # default port

Getting started

  • virtualenv venv
  • . venv/bin/activate
  • pip install cython # should install first
  • pip install -U setuptools # python-libmemcached require updated setuptools
  • pip install -r requirements.txt
  • gunicorn -b 127.0.0.1:8000 app:app # web & git http daemon

FAQ

  1. single http daemon
  • gunicorn -b 127.0.0.1:8001 smart_httpd:app # git http daemon

License

See the LICENSE file for the full license text.

About

Douban Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.0%
  • Python 15.5%
  • CSS 3.5%