These are a few simple examples of how to run ShareJS with RethinkDB as your database. These examples depend on LiveDB-RethinkDB instead of the default LiveDB-mongo.
If you don’t have Node.js installed and you’re on a mac, use brew
to install it.
brew update
brew install node
RethinkDB official installation instructions
If you’re on a mac, use brew to install it:
brew update
brew install rethinkdb
Once installed, go ahead and run RethinkDB:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.rethinkdb.plist
If you want to launch RethinkDB on login, run the following code:
ln -sfv /usr/local/opt/rethinkdb/*.plist ~/Library/LaunchAgents
To see if works, go to http://localhost:8080
and see if you get the data explorer.
Clone the git repository from GitHub.
git clone https://github.com/thejsj/sharejs-rethinkdb-example.git
cd sharejs-rethinkdb-example
npm install
npm install -g bower
bower install
To run the development server, run the following:
npm run dev
To run the normal server, run the following:
npm start