Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rethinkdb/rethinkdb-example-nodejs-chat
A node.js chat application running on rethinkdb
https://github.com/rethinkdb/rethinkdb-example-nodejs-chat
Last synced: 28 days ago
JSON representation
A node.js chat application running on rethinkdb
- Host: GitHub
- URL: https://github.com/rethinkdb/rethinkdb-example-nodejs-chat
- Owner: rethinkdb
- Archived: true
- Created: 2013-01-19T00:06:17.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-08-29T02:44:24.000Z (over 4 years ago)
- Last Synced: 2024-08-03T06:01:55.177Z (4 months ago)
- Language: CSS
- Size: 1.17 MB
- Stars: 203
- Watchers: 35
- Forks: 106
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-rethinkdb - Asynchronous Chat
README
# What is it #
A fork of the [node.js chat app](https://github.com/eiriksm/chat-test-2k) by [@orkj](https://twitter.com/orkj)
using socket.io, rethinkdb, passport and bcrypt on an express app.Note:
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.# Complete stack #
* [node.js](http://nodejs.org)
* [socket.io](http://socket.io)
* [express](http://expressjs.com) and [jade](http://jade-lang.com)
* [Passport](http://passportjs.org) and [bcrypt](https://github.com/ncb000gt/node.bcrypt.js/)
* [debug](https://github.com/visionmedia/debug)
* [RethinkDB](http://www.rethinkdb.com/)# Installation #
```
git clone [email protected]: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](http://www.rethinkdb.com/docs/install/).
# Running the application #
Running the app is as simple as:
```
node app
```Then open a browser: .
_Note_: If you want to override the default RethinkDB connection details, you can
specify them as environment variables:* `RDB_HOST`: the RethinkDB host (default: `localhost`)
* `RDB_PORT`: the port (default `28015`)
* `RDB_DB`: the app database (default: `chat`)If you want to enable logging for the database queries (see [debug docs](https://github.com/visionmedia/debug)
for more configuration options:```
DEBUG=rdb:* node app
```# License #
This demo application is licensed under the MIT license: