What is it
<div><strong><h4>Note:</h4> This is an example application. Even though it shows an example of how to integrate Passport and bcrypt, you shouldn't assume it is free from security vulnerabilities. Have the code audited carefully by an expert before you put anything modeled on it into production.</strong></div>
git clone email@example.com:rethinkdb/rethinkdb-example-nodejs-chat.git cd rethinkdb-example-nodejs-chat && npm install
Note: If you don't have RethinkDB installed, you can follow these instructions to get it up and running.
Running the application
Running the app is as simple as:
Then open a browser: http://localhost:8000.
Note: If you want to override the default RethinkDB connection details, you can
specify them as environment variables:
RDB_HOST: the RethinkDB host (default:
RDB_PORT: the port (default
RDB_DB: the app database (default:
If you want to enable logging for the database queries (see debug docs
for more configuration options:
DEBUG=rdb:* node app
Annotated Source Code
After checking out the code, you can also read the annotated source here.
This demo application is licensed under the MIT license: http://opensource.org/licenses/mit-license.php