0.0.4 • Published 3 years ago

tiedot v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Tiedot

Node.js Tiedot client.

Installation

To install tiedot, run:

yarn add tiedot

This will download the Tiedot client and add a dependency entry in your package.json file.

Connecting to tiedot

const Tiedot = require("tiedot");

const client = new Tiedot("http://localhost:5050");

Usage

Manage collections

// Create collection
await bucket.create("Users");

// Rename Collection
await bucket.rename("Users", "Contacts");

// Drop collection
await bucket.drop("Users");

Manage documents

// Insert
await bucket.insert("Users", {
    username: "yasaricli",
});

// Get
await bucket.insert("Users", "id");

// Update
const updateRequest = await bucket.update("Users", "id", {
  username: "osman",
});

// Remove
await bucket.remove("Users", "id");

Docker Run

To pull and start the Tiedot container, run this docker run command in the terminal or command-line for your operating system.

docker pull lichti/tiedot
docker run --name tiedot -d -p 5050:8080 lichti/tiedot

Screen Shot 2021-08-31 at 22 12 27

Tiedot is a document database engine that uses JSON as document notation HouzuoGuo/tiedot

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago