Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.76 KB

README.md

File metadata and controls

46 lines (29 loc) · 1.76 KB

Symfony-Arangodb

This is a simple "Hello World" example of using ArangoDB in Symfony2.

Screenshot

This demo uses

Scope

The "app" demonstrates how to create, update and delete documents using the simple query API. Additionally it has an example for ArangoDB's query language AQL (search for topics in the movies database).

Installation

First install ArangoDB and make sure it is running. You'll find plenty of information how to do this in the ArangoDB manual.

The installation of the demo app is pretty straight forward (the usual way for Symfony 2 apps which use composer).

  1. set up a virtual domain Here is an example for a vhost config for Apache)
  2. clone the repository
  3. cd symfony-arangodb
  4. get composer
  5. Run "php composer.phar install" - this will fetch all required 3rd party libs from the internet and set everything up

Running the app

Finally open the app in your browser. Let's say your virtual domain is called hellosymfony.dev, the app will pop up using http://hellosymfony.dev/ or hellosymfony.dev/app_dev.php to run it in dev mode.

Where to start digging in the code

There are settings for arangodb in app/config_dev.yml - look for "mop_arango_db". Check out the documentation for MopArangoDbBundle for details on this (note: this bundle also offers integration with the FOS UserBundle).

You'll find all the demo code in src/Triagens/ArangodbBundle/Controller/DefaultController.php