Files
NodeBB/README.md

60 lines
2.1 KiB
Markdown
Raw Normal View History

2013-04-23 16:51:39 -04:00
# 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.
2013-04-22 16:51:32 +00:00
## Installation
2013-04-22 16:51:32 +00:00
2013-04-23 16:51:39 -04:00
First step is to obtain all of the dependencies requires by NodeBB:
2013-04-22 16:51:32 +00:00
2013-04-22 14:45:33 -04:00
$ npm install
2013-04-22 14:20:50 -04:00
2013-04-22 15:34:54 -04:00
*(Optional)* Next, we install redis. If you already have redis installed, you can skip this step.
2013-04-22 14:45:33 -04:00
# apt-get install redis
2013-04-23 16:51:39 -04:00
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:
2013-04-22 15:40:53 -04:00
$ cp public/config.default.json public/config.json
2013-04-23 16:51:39 -04:00
... 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).
2013-04-22 15:40:53 -04:00
2013-04-22 14:45:33 -04:00
Lastly, we run the forum.
$ node app
2013-04-22 15:34:54 -04:00
## Server Configuration
2013-04-23 16:51:39 -04:00
The server configuration file (located at `/config.js`) contains default options required for the running of NodeBB. The following options are available:
<table>
<tr>
<th>Option</th>
<th>Description</th>
</tr>
2013-04-23 16:51:39 -04:00
<tr>
<td><b>base_url</b></td>
<td><i>(Default: 'http://localhost')</i> A web-accessible URL to your app, without the port</td>
</tr>
<tr>
<td><b>port</b></td>
2013-04-23 16:51:39 -04:00
<td><i>(Default: 4567)</i> The default port that NodeBB runs on</td>
</tr>
2013-04-22 14:45:33 -04:00
<tr>
<td><b>mailer</b></td>
<td>
<i>(Default: {<br />
&nbsp;&nbsp;&nbsp;&nbsp;host: 'localhost',<br />
&nbsp;&nbsp;&nbsp;&nbsp;port: '25',<br />
&nbsp;&nbsp;&nbsp;&nbsp;from: 'mailer@localhost.lan'<br />
})</i><br />
Settings for the outgoing mailer (for emails involving user registration/password resets)
</td>
</tr>
2013-04-22 15:34:54 -04:00
</table>
## Client Configuration
As the client will utilise web sockets to connect to the server, you'll need to customise the client configuration file (located at `/public/config.json`) to point to your server's publically accessible IP. The port will be identical to the port specified in the server-side configuration (defaulted to `4567`).