Created
September 17, 2015 22:02
-
-
Save boredstiff/48b37c5775fed00d89da to your computer and use it in GitHub Desktop.
rethinkdb / ubuntu 15.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ubuntu 15.04 | |
| install Guest Additions image | |
| restart | |
| ===========mount | |
| $ sudo mount -t vboxsf shared_dev /home/win_dev | |
| ==========Sublime Text 3 | |
| http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3083_amd64.deb | |
| ======node.js(ppa) | |
| $ curl -sL http://deb.nodesource.com/setup | sudo bash - | |
| $ sudo apt-get install nodejs | |
| $ sudo apt-get install build-essential | |
| ==========docker======== | |
| curl -sSL https://get.docker.com/ | sh | |
| sudo docker run hello-world | |
| sudo docker service start | |
| ========rethinkdb=========== | |
| source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list | |
| wget -qO- http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add - | |
| sudo apt-get update | |
| $ sudo apt-get install rethinkdb | |
| ===========npm rethinkdb/js(local, not global) | |
| $ npm install rethinkdb | |
| then start node | |
| $ node | |
| import RethinkDB driver | |
| $ r = require('rethinkdb') | |
| //Open a connection | |
| var connection = null | |
| r.connect({host: 'localhost', port:28015}, function(err, conn) { | |
| if (err) throw err; | |
| connection = conn; | |
| }) | |
| //Connection is now initialized and you can run queries |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment