GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 377262688/code: Douban CODE

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

65 Commits
65 Commits

Folders and files

NameName
Last commit message
Last commit date
scripts
scripts
 
 
vilya
vilya
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
app.py
app.py
 
 
quick_start.sh
quick_start.sh
 
 
requirements.txt
requirements.txt
 
 
setup_databases.sh
setup_databases.sh
 
 
smart_httpd.py
smart_httpd.py
 
 
web.py
web.py
 
 
wsgi.py
wsgi.py
 
 

Repository files navigation

Build Status

Douban CODE

  • Website: http://douban-code.github.io
  • Guide: http://douban-code.github.io/pages/getting-started.html

Dependency

  • libmemcached http://douban-code.github.io/pages/python-libmemcached.html
  • Python 2.7+
  • pip >= 1.4.1

Quick Installation

Currently supports the following systems:

  • gentoo
  • ubuntu/debian
  • centos/redhat/fedora
  • opensuse
  • archlinux

You only to excute:

bash <(curl -s https://raw.github.com/douban/code/master/scripts/install_code.sh)

Notes: The install script in code/scripts subdirectory, for example ubuntu/debian, You can see code/scripts/ubuntu.sh

Prepare

  • mysql # default port
# import vilya/databases/schema.sql to database `valentine`
$ mysql -uroot -e 'create database valentine;'
$ mysql -uroot -D valentine < vilya/databases/schema.sql
  • memcached # default port

  • customize code config

# after clone code repo you can change the default config by:
$ cd {CODE_REPO}
$ cp vilya/local_config.py.tmpl vilya/local_config.py
# overwrite configs defined in vilya/config.py.
$ vim vilya/local_config.py

Getting started

git clone https://github.com/douban/code.git
cd code
mysql -uroot -e 'create database valentine;'
mysql -uroot -D valentine < vilya/databases/schema.sql
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 -w 2 -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
  1. vilya.config.DOMAIN
  • if you run 'gunicorn -b IP:PORT app:app', the DOMAIN should be 'http://IP:PORT/'

License

CODE is under Revised BSD License. See the LICENSE file for the full license text.

About

Douban CODE

douban-code.github.io

Resources

Readme
License
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.