Total Pageviews

Sunday, 6 September 2015

基于NODEJS的论坛程序-NodeBB

Node.js based forum software built for the modern web.

NodeBB Forum Software is powered by Node.js and built on either a Redis or MongoDB database. It utilizes web sockets for instant interactions and real-time notifications. NodeBB has many modern features out of the box such as social network integration and streaming discussions, while still making sure to be compatible with older browsers.
Additional functionality is enabled through the use of third-party plugins.

Screenshots

       
 

How can I follow along/contribute?

  • Our feature roadmap is hosted on the project wiki's Version History / Roadmap
  • If you are a developer, feel free to check out the source and submit pull requests. We also have a wide array of plugins which would be a great starting point for learning the codebase.
  • If you are a designer, NodeBB needs themes! NodeBB's theming system allows extention of the base templates as well as styling via LESS or CSS. NodeBB's base theme utilizes Bootstrap 3but themes can choose to use a different framework altogether.
  • If you know languages other than English you can help us translate NodeBB. We use Transifex for internationalization.
  • Please don't forget to likefollow, and star our repo! Join our growing community to keep up to date with the latest NodeBB development.

Requirements

NodeBB requires the following software to be installed:
  • A version of Node.js at least 0.10 or greater
  • Redis, version 2.8.9 or greater or MongoDB, version 2.6 or greater
  • nginx, version 1.3.13 or greater (only if intending to use nginx to proxy requests to a NodeBB)

Installation

Securing NodeBB

It is important to ensure that your NodeBB and database servers are secured. Bear these points in mind:
  1. While some distributions set up Redis with a more restrictive configuration, Redis by default listens to all interfaces, which is especially dangerous when a server is open to the public. Some suggestions:
    • Set bind_address to 127.0.0.1 so as to restrict access to the local machine only
    • Use requirepass to secure Redis behind a password (preferably a long one)
    • Familiarise yourself with Redis Security
  2. Use iptables to secure your server from unintended open ports. In Ubuntu, ufw provides a friendlier interface to working with iptables.
    • e.g. If your NodeBB is proxied, no ports should be open except 80 (and possibly 22, for SSH access)

Upgrading NodeBB

Detailed upgrade instructions are listed in Upgrading NodeBB

from https://github.com/NodeBB/NodeBB
--------------

主要用到的技术
nodejs > 0.10
redis > 2.6
以下是package.json 依赖略多
  "dependencies": {
    "async": "~0.9.0",
    "bcryptjs": "~2.1.0",
    "body-parser": "^1.9.0",
    "compression": "^1.1.0",
    "connect-ensure-login": "^0.1.1",
    "connect-flash": "^0.1.1",
    "connect-multiparty": "^1.2.4",
    "cookie-parser": "^1.3.3",
    "cron": "^1.0.5",
    "csurf": "^1.6.1",
    "daemon": "~1.1.0",
    "express": "^4.9.5",
    "express-session": "^1.8.2",
    "gm": "1.17.0",
    "gravatar": "^1.1.0",
    "heapdump": "^0.3.0",
    "less": "^2.0.0",
    "logrotate-stream": "^0.2.3",
    "mime": "^1.3.4",
    "mkdirp": "~0.5.0",
    "mmmagic": "^0.3.13",
    "morgan": "^1.3.2",
    "nconf": "~0.7.1",
    "nodebb-plugin-dbsearch": "^0.1.0",
    "nodebb-plugin-emoji-extended": "^0.4.1-4",
    "nodebb-plugin-markdown": "^1.0.0",
    "nodebb-plugin-mentions": "^0.9.0",
    "nodebb-plugin-soundpack-default": "~0.1.1",
    "nodebb-plugin-spam-be-gone": "^0.4.0",
    "nodebb-theme-lavender": "^1.0.6",
    "nodebb-theme-vanilla": "^1.0.14",
    "nodebb-widget-essentials": "~0.2.12",
    "nodebb-rewards-essentials": "^0.0.1",
    "npm": "^2.1.4",
    "passport": "^0.2.1",
    "passport-local": "1.0.0",
    "prompt": "^0.2.14",
    "request": "^2.44.0",
    "rimraf": "~2.2.6",
    "rss": "^1.0.0",
    "semver": "^4.0.3",
    "serve-favicon": "^2.1.5",
    "sitemap": "^0.7.4",
    "socket.io": "^1.2.1",
    "socket.io-client": "^1.2.1",
    "socket.io-redis": "^0.1.3",
    "socketio-wildcard": "~0.1.1",
    "string": "^3.0.0",
    "templates.js": "^0.1.15",
    "uglify-js": "git+https://github.com/julianlam/UglifyJS2.git",
    "underscore": "~1.7.0",
    "validator": "^3.30.0",
    "winston": "^0.9.0",
    "xregexp": "~2.0.0"
  },
  "devDependencies": {
    "mocha": "~1.13.0"
  }