microdb-api
v1.0.6
Published
MicroDB.co REST API wrapper for Node.js
Downloads
6
Readme
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:[];
}
});