Skip to content

Instantly share code, notes, and snippets.

@bernardoduarte
Last active July 1, 2018 16:35
Show Gist options
  • Save bernardoduarte/685bf8cac085cb35c74d2c49aa16951f to your computer and use it in GitHub Desktop.
Save bernardoduarte/685bf8cac085cb35c74d2c49aa16951f to your computer and use it in GitHub Desktop.
Tutorial ArangoDB + NodeJS + Ubuntu
curl -OL https://download.arangodb.com/arangodb33/xUbuntu_16.04/Release.key
sudo apt-key add - < Release.key
echo 'deb https://download.arangodb.com/arangodb33/xUbuntu_16.04/ /' | sudo tee /etc/apt/sources.list.d/arangodb.list
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install arangodb3=3.3.11

2.1 Installation

npm install arangojs@5

2.2 Database connection

Database = require('arangojs').Database;
db = new Database('http://<user>:<password>@<address>:<port>');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment