https://github.com/yasaricli/node-tiedot
Node.js Tiedot client.
https://github.com/yasaricli/node-tiedot
client tiedot
Last synced: about 1 year ago
JSON representation
Node.js Tiedot client.
- Host: GitHub
- URL: https://github.com/yasaricli/node-tiedot
- Owner: yasaricli
- Created: 2021-08-31T15:09:23.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-01T07:00:27.000Z (almost 5 years ago)
- Last Synced: 2025-04-25T09:57:13.552Z (about 1 year ago)
- Topics: client, tiedot
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/tiedot
- Size: 72.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```JS
const Tiedot = require("tiedot");
const client = new Tiedot("http://localhost:5050");
```
## Usage
### Manage collections
```JS
// Create collection
await bucket.create("Users");
// Rename Collection
await bucket.rename("Users", "Contacts");
// Drop collection
await bucket.drop("Users");
```
### Manage documents
```JS
// 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

`Tiedot` is a **document database** engine that uses **JSON** as document notation [HouzuoGuo/tiedot](https://github.com/HouzuoGuo/tiedot)