异世界红茶馆的源码
 
 
 
 
Go to file
Julian Lam 6a91c8a116 Merge branch 'master' of github.com:psychobunny/node-forum
feeds figured it out. .gitignore can ignore itself, derp. - real commit: gitignore for feeds.
install/data categories.json updated with fixed github logo + new category to replace duplicate bug reports cat
public Merge branch 'master' of github.com:psychobunny/node-forum
src Merge branch 'master' of github.com:psychobunny/node-forum
.gitignore updating social login icons to use font-awesome equivalents instead of (possibly) proprietary icons
.project log server errors in browser
README.md cleaning up readme file and fixing bugs in editing of posts ("asdf" anyone?)
app.js allowing the setup script to be triggered on-demand via command line argument
nodebb Merge branch 'master' of github.com:psychobunny/node-forum
package.json patching app setup to also create the client-side config automatically.

README.md

NodeBB

NodeBB is a robust nodejs driven forum built on a redis database. It is powered by web sockets, and is compatible down to IE8.

NodeBB Screenshot

NodeBB Login Page (with Social Logins)

Requirements

NodeBB requires a version of Node.js at least 0.8 or greater, and a Redis version 2.6 or greater.

Installation

First, we install our base software stack. build-essential is required as it exposes the build environment for bcrypt compilation, we won't be compiling anything manually.

# apt-get install git nodejs redis-server npm build-essential
$ cd /path/to/nodebb/install/location
$ git clone git://github.com/designcreateplay/NodeBB.git nodebb

Next, obtain all of the dependencies required by NodeBB:

$ cd nodebb
$ npm install

Now we ensure that the configuration files are properly set up. NodeBB runs on port 4567 by default. The client side config can be set up thusly:

$ cp public/config.default.json public/config.json

... and the server side config can be set up similarly:

$ cp config.default.js config.js

Ensure that /public/config.json points to the publically accessible IP/hostname of your forum, and that the values of the server side config are also set correctly (see below).

Lastly, we run the forum.

$ node app

(Optional) Some server configurations may install the node binary as nodejs instead of node. You can re-map it (so as to not break compatibility with node-supervisor) by running the following command:

# update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10