Wednesday, August 10, 2016

Arangodb3 basic shell tutorials:

Hope arangodb is already installed !

1) check if the arangodb is already installed ?

curl http://localhost:8529/_api/version   => here it will give the details of the arangodb version in json format.

2) login to arangodb shell

arangosh    =>  provide the arangodb root password

3) create a user

require ("org/arangodb/users").save("khirod","khirod");

4) Grant _system access to user khirod

require("org/arangodb/users").grantDatabase("khirod","_system");


next  coming soon ....



Monday, August 8, 2016

Some Ruby tips :

1) use literal array instead of ['test', 'test1']

ex :  %w(test test1)

2) check with multiple values

ex: %w(val1 val2 val3).include?(check_val)