June is a forum
Pull request Compare This branch is 411 commits ahead, 213 commits behind lepture:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
assets
conf
docs
june
.gitignore
.gitmodules
Guardfile
License
MANIFEST.in
Makefile
README.mkd
requirements.txt
settings-debug.py
settings.py
setup.py
supervisord.sh
update_models.py

README.mkd

June

June is a forum

How to contribute

Fork and send pull request. All code must be linted by flake8.

How to debug on your own machine

The easy way:

python setup.py install

After installation, type june.tools -h for help.

  1. create a settings file: june.tools , a file called settings.py will be created in your current path.

  2. edit settings file

    • change master for your database
    • change static_path
    • add repatcha key and secret
  3. create database: june.tools --settings=settings.py createdb

  4. create super user: june.tools --settings=settings.py createuser

  5. start server: june.server --settings=settings.py

The hard way

  1. install all required modules:

    • tornado
    • SQLAlchemy
    • markdown
    • pygments
    • python-memcached
    • argparse
  2. check above, using june/tools.py to create everything

  3. check above using june/app.py to start server

How to set up a production enironment

You need to know a little of supervisor and nginx, all config files are available in conf/

Set fator for your site:

  • reply_factor_for_topic (default: 600)
  • reply_time_factor (default: 1000)
  • up_factor_for_topic (default: 1500)
  • up_factor_for_user (default: 1)
  • down_factor_for_topic (default:800)
  • down_factor_for_user (default: 1)
  • vote_reply_factor_for_topic (default: 500)
  • vote_reply_factor_for_user (default: 1)

If your forum is very active, set the factors lower, otherwise set the factors higher!