Set up ArangoDB
Installation (See official documentation Here)
- Download Link
- Run it with
/usr/local/sbin/arangod
The default installation contains one database_system
and a user namedroot
- Create a user and database for the project with the
arangosh
shell
arangosh> db._createDatabase("DB_NAME");
arangosh> var users = require("@arangodb/users");
arangosh> users.save("DB_USER", "DB_PASSWORD");
arangosh> users.grantDatabase("DB_USER", "DB_NAME");
It is a good practice to create a test db and a development db.
- you can connect to the newly created db with
$> arangosh --server.username $DB_USER --server.database $DB_NAME