Fresher to arangoDB (to any object db)

144 views
Skip to first unread message

Vijay Bhargav

unread,
Aug 22, 2013, 3:07:59 AM8/22/13
to aran...@googlegroups.com
Hi All,

I just installed ArangoDB. i have worked with relational databases so far where we connect to db from a language using a query and store the data in database. i would like to know how things work here. do we have any queries to execute or where can i get abc of this DB. please help as i am very much interested to learn ArangoDB with Ruby on rails

Many thanks

Vijay

Jan Steemann

unread,
Aug 22, 2013, 3:33:47 AM8/22/13
to aran...@googlegroups.com, Vijay Bhargav
Hi Vijay,

ArangoDB has an HTTP REST API, and all queries from the client-side (be
it a Ruby client or any different client) will send their requests to
the database via HTTP.

For example, if you started ArangoDB on host & port 127.0.0.1:8529, then
you can use your browser to connect to the database (the browser then is
a regular client of the HTTP API, too). Using the browser, you can do
some basic administration things, like creating/collections and
viewing/creating documents in them.

Note that there should also be a separate arangosh (ArangoShell) binary
that can be used for administration.

The entire REST API for ArangoDB 1.3 is described in detail here:
http://www.arangodb.org/manuals/current/ImplementorManual.html

This should clarify a lot in terms of what you can do with the database
in general.


Then there are client drivers for different programming languages, among
them there is a Ruby driver, Ashikawa.

It can be found here:
http://triagens.github.io/ashikawa-core/

I am actually not that much into Ruby myself, but if you should have any
specific questions regarding the Ruby driver or integration into a Rails
app, probably the driver maintainer (@moonbeamlabs) can help.

Best regards
Jan

Lucas Dohmen

unread,
Aug 22, 2013, 4:30:56 AM8/22/13
to aran...@googlegroups.com, Vijay Bhargav
Hi Vijay,

I'm the maintainer of the Ruby Driver :) So if you have any questions about it, just send me an email :)

Best Wishes,
Lucas
> --
> You received this message because you are subscribed to the Google Groups "ArangoDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to arangodb+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Vijay Bhargav

unread,
Aug 22, 2013, 5:58:49 AM8/22/13
to aran...@googlegroups.com, Vijay Bhargav, j.ste...@triagens.de
Thanks Jen for the timely reply. I will go through the links and start to learn. I will get back with more questions :) :)

Vijay Bhargav

unread,
Aug 22, 2013, 5:59:23 AM8/22/13
to aran...@googlegroups.com, Vijay Bhargav
Thanks Lucas. Sure i will mail you for help once i learn the basics :):)

Lucas Dohmen

unread,
Aug 22, 2013, 6:24:03 AM8/22/13
to aran...@googlegroups.com, Vijay Bhargav
Awesome :)

Am 22.08.2013 um 11:59 schrieb Vijay Bhargav <bvijay...@gmail.com>:

Thanks Lucas. Sure i will mail you for help once i learn the basics :):)

Vijay Bhargav

unread,
Aug 24, 2013, 7:21:48 AM8/24/13
to aran...@googlegroups.com, j.ste...@triagens.de, lucas....@rwth-aachen.de

Hi All,

I have installed ArangoDB in my PC windows 7 64 bit operating system. However I am not able to run the server. The following is what I am trying to do.

My task is to check if arangodb is properly connected and working file. That is to check db._collections(); for  result

Try1:

In command prompt I navigated to the path where arangoDB is installed.

I have tried

C:\triAgens>arangosh  --server.password “”

I got an error. FATEL module path not known…

I again tried

C:\triAgens> --server.endpoint tcp://127.0.0.1:8529 –server.username root

And password I specified Admin

I go t the same error.

Below is the screen shot.

 

Try2:

In command path, I have navigated to the path  where arangoDb is insalled and typed the following command

C:\triAgens> serverExample.bat

It has said that the server is ready for the business. Have ful! But I could not type any

Other command in the command prompt. I cudn`t see command prompt cursor blinking.

Here is the screen shot. I couldn`t figureout the error myself

Try3:

In the path where I have installed arangoDB, I have typed the following command

C:\triAgens> shellExample.bat

ArangoDB has started. But it said it couldn`t connect to endpoint. So I have tried to  the following command

Arangosh> --server.endpoint tcp://127.0.0.1:8529 –server.username root

I got the error again. Please see the below command prompt screen shot

 

Last try:

I tried to double click on the arangod application from folder where I installed the DB. I got the below error

The below screenshot , I tried different commands after executing shellexample.bat

to post.doc

Frank Celler

unread,
Aug 24, 2013, 3:56:34 PM8/24/13
to aran...@googlegroups.com, j.ste...@triagens.de, lucas....@rwth-aachen.de
Hi Vijay,

can you try the following:

cd \triAGENS
serverExample.bat

check the info message in the shell there should be a line

2013-08-24T19:51:43Z [4652] INFO ArangoDB (version 1.3.2 [WIN64-RELEASE]) is ready for business. Have fun!

at the end and a line

2013-08-24T19:51:32Z [4652] INFO using endpoint 'tcp://127.0.0.1:8529' for http non-encrypted requests

This is TRY 2 in your example. This will start the server.

Now either use Firefox (or IE) to open

  http://localhost:8529

or open another window and start

  shellExample.bat

this will a JavaScript shell and connect to the server.

cheers
  Frank

Vijay Bhargav

unread,
Aug 26, 2013, 3:46:07 AM8/26/13
to aran...@googlegroups.com, j.ste...@triagens.de, lucas....@rwth-aachen.de
Thanks a lot Frank. It worked :) :) . i am able to create a collection and insert documents.

Any ways can we create different databases if so can you please tell me how.

Many thanks
Vijay

Vijay Bhargav

unread,
Aug 26, 2013, 3:47:14 AM8/26/13
to aran...@googlegroups.com, Vijay Bhargav, lucas....@rwth-aachen.de
Hi Lucas,

Can you please give me a sample code to connect to ArangoDB using ruby. I would like to understand how things work in Ruby.

Many Thanks
Vijay

Lucas Dohmen

unread,
Aug 27, 2013, 5:39:10 AM8/27/13
to aran...@googlegroups.com, Vijay Bhargav
Hi Vijay,

No problem:

Clone it. Run `bundle` and then `bundle exec ruby arango.rb`.

Best Wishes,
Lucas

Vijay Bhargav

unread,
Aug 29, 2013, 10:52:24 AM8/29/13
to aran...@googlegroups.com, Vijay Bhargav, lucas....@rwth-aachen.de
Thanks Lucas. I have understood the code. However, i was confused when i have created a new project in netbeans. there are lot of folders and i am not sure where i have to start writing

Many thanks 
Vijay

Lucas Dohmen

unread,
Aug 29, 2013, 4:40:25 PM8/29/13
to aran...@googlegroups.com, Vijay Bhargav
Hey Vijay,

Sorry, I can't help you with NetBeans at all – I never used it! I would suggest asking the question on StackOverflow.com or www.ruby-forum.com :)

Best Wishes,
Lucas
signature.asc
Reply all
Reply to author
Forward
0 new messages