Total Pageviews

Wednesday, 14 June 2017

一个用Tornado+MongoDB搭建的论坛程序-Young

A full-featured forum software built on Tornado and MongoDB.

A Full-featured forum software built with love by Lime in Python.
中文README

Features:

  • Classified topics
  • Anonymity Support
  • Social Network (tweet, friends etc.)
  • IM Chat
  • Real-time Notification
  • Resource Share

Screenshots








Installation

On Unbuntu 16.04:
git clone https://github.com/shiyanhui/Young.git
cd Young && ./scripts/install.sh
Then set your mongodb environment:
1. open /etc/mongod.conf, add

    replication:
        replSetName: rs0

2. restart mongodb

    service mongod restart

3. enter mongo client and execute

    mogno
    rs.initiate()
The next step you shoud initialize the database.
fab init
If you want to set up your own mail server, execute setup_mail.sh, which will install postfix.
./scripts/setup_mail.sh
NOTE:
scripts/install.sh is only tested on Ubuntu-16.04, so on other platform you may install manually. Just do as scripts/install.sh do step by step.

Requirements

- Mongodb >= 2.6
- Ejabberd >= 16.08
- NSQ >= 0.3.8
- Elasticsearch >= 2.3.5
- NodeJS >= 4.0

Development

  • you should start all required services before you run it.
    fab start_service
  • build the resource.
    fab build
  • run it locally.
    # debug mode is close by default, it will automatically build before run
    fab run

    # run it in debug mode
    fab run:debug=true
 
from  https://github.com/shiyanhui/Young

No comments:

Post a Comment