GithubHelp home page GithubHelp logo

chancejiang / june Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pythoncn/june

1.0 1.0 0.0 1.22 MB

June is a forum

Home Page: https://trello.com/board/june/4f51c57ed8fc74c84450311e

License: BSD 3-Clause "New" or "Revised" License

june's Introduction

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.