This is a playground
to test code. It runs a full Node.js
environment and already has all of npm
’s 400,000 packages pre-installed, including loopback-connector-arangodb
with all npm
packages installed. Try it out:
require()
any package directly from npmawait
any promise instead of using callbacks (example)This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
The ArangoDB connector for the LoopBack framework.
"test": {
"arangodb": {
"host": "127.0.0.1",
"database": "test",
"username": "youruser",
"password": "yourpass",
"port": 8529,
"arangoVersion": 28000
}
}
By default, examples and tests from this module assume there is a ArangoDB server instance running on localhost at port 8529.
To customize the settings, you can drop in a .loopbackrc
file to the root directory
of the project or the home folder.
Note: Tests and examples in this project configure the data source using the deprecated '.loopbackrc' file method, which is not suppored in general. For information on configuring the connector in a LoopBack application, please refer to LoopBack documentation.
The .loopbackrc file is in JSON format, for example:
{
"dev": {
"arangodb": {
"host": "127.0.0.1",
"database": "test",
"username": "youruser",
"password": "yourpass",
"port": 8529
}
},
"test": {
"arangodb": {
"host": "127.0.0.1",
"database": "test",
"username": "youruser",
"password": "yourpass",
"port": 8529
}
}
}
Note: username/password is only required if the ArangoDB server has authentication enabled.
We love contributions!
When contributing, follow the simple rules:
The tests in this repository are mainly integration tests, meaning you will need to run them using our preconfigured test server.
npm test