microdb-api

1.0.6 • Public • Published

microdb-api

MicroDB REST API wrapper for Node.js

https://www.microdb.co is data-as-a-service for applications.

Install

npm install microdb-api

Set API key and output folder

Create a envVars.txt file with these values. 
- MICRODB_APIKEY = your_db_apikey_from_microdb

Usage

var microdb = require('microdb-api')(process.env.MICRODB_APIKEY);

microdb.Tables.account.get({ 'email': 'email@domain_name.com' }).then(function (res) {
    if (res.success){
      var user = res.data && res.data.Rows? res.data.Rows:[];
    }
  });

Readme

Keywords

none

Package Sidebar

Install

npm i microdb-api

Weekly Downloads

0

Version

1.0.6

License

Apache-2.0

Unpacked Size

23.5 kB

Total Files

5

Last publish

Collaborators

  • jerryonnpm