ark-database

18.3.0 • Public • Published

ark-database

Database-Plugin for ark our application server of locator-app.com

Usage

npm install ark-database to install the plugin (use the option -S to include it in your project)

var Database = require('ark-database'); // import it to your code
 
var db = new Database('alice'); // set up database
 
// example calls
db.getUserById('1234567890', function(err, res) {
   console.log(res);
});
 
db.createTrip(newTrip,  function(err, res) {
   console.log(res);
});
 
db.deleteLocationById('12322456576567',  function(err, res) {
   console.log(res);
});

Note: We are slowly changing from using callbacks to promises (issue #35). When in doubt look up the source code.

Server administration

How to configure or maintain the actual database on our server, look here: Server-Administration

Tests

Tests can be run with npm test or make test, make test-cov and test-cov-html. Note: npm test points to make test-cov. This is inspired from many hapi plugins.

/ark-database/

    Package Sidebar

    Install

    npm i ark-database

    Weekly Downloads

    1

    Version

    18.3.0

    License

    none

    Last publish

    Collaborators

    • timoweiss
    • michaelknoch
    • t1m1
    • dennismoosmann
    • steffengorenflo