NPM npm install --save labstack
Yarn yarn add labstack
Sign up to get an API key
Create a file app.js
with the following content:
const {Client} = require('labstack')
const client = new Client('<ACCOUNT_ID>', '<API_KEY>')
const store = client.store()
store.insert('users', {
name: 'Jack',
location: 'Disney'
}).then(doc => {
console.log(doc)
}).catch(err => {
console.error(err)
})
From terminal run your app:
node app.js