Skip to content


Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


Visit Unrestricted Coding Documentation License Status jsHint build

Realtime Chat with RethinkDB

This is an example of using NodeJS and RethinkDB along with Express and SocketIO to create a realtime chatroom. It should be a fairly simple example to follow, and if not you can jump in the Slack and ask questions.

To install, clone or download this repository to your local machine and follow the steps outlined in the sections below.

Full Documentation Available Documentation Link

To View Repository Goto Github

Live Demo

I've setup a live demo at:

Need to know info:

RethinkDB - Node Installation Info:

RethinkDB - Server Installation Info:

Install RethinkDB on Ubuntu

I do all of my development for opensource projects on Cloud9 ( And because of that, ubuntu is their choice flavor of linux.

To install RethinkDB paste the following into your terminal and run them:

source /etc/lsb-release && echo "deb $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
wget -qO- | sudo apt-key add -
sudo apt-get update
sudo apt-get install rethinkdb

Run RethinkDB on Cloud9

We don't want to use port 8080 on Cloud9 for the rethinkdb admin console. This port is used by c9 to display your web project, so we don't want to block that port for use. So instead use the following to run rethinkdb:

rethinkdb --bind all --http-port 8081

Install Dependencies

To install the dependencies run the following commands

$ npm install -g bower # globablly install Bower package manager
$ npm install          # install local npm build / test dependencies
$ bower install        # install local javascript and css dependencies

Run the app

You can run the app with the following command node app.js. You can then go to your browser and view the application.

Type text in the box and hit send, it should start working!

Run Tests

To run test you should run the following commands:

$ node app.js       # starts server
$ grunt test        # tests against server

Generate Documentation

To generate documentation then you just have to run the following command:

$ grunt doc


A realtime chatroom built with RethinkDB







No releases published


No packages published