dino-db-client
v0.1.2
Published
dino db cross platform client
Downloads
3
Maintainers
Readme
The Dino db client is used to connect to remote instances of dino db. It streamline the http requests into an easy to use api as if you had full local access.
Installing
# npm
npm install dino-db-client
// node
const dinoClient = require('dino-db-client');
//browser
import * as dinoClient from 'https://cdn.skypack.dev/dino-db-client'
First check out how to start a database using the cross platform database module dino-db
Then check out on how to expose your database with the server extension so you can connect using this client.
Usage
//initialise client on local server with default port and path (accsesKey is optional and is only required if your server is configered that way)
var client = new dinoClient.remoteClient({url: 'http://localhost:88', path: '/', accsesKey: 'password123' })
// Use the normal api avalible
// Example (top level await required for this to run in normal context)
await cl.getInBook('ingredients', 'sugar')
Go to the docs page for more information on usage