https://github.com/griddb/node-api
GridDB Node API
https://github.com/griddb/node-api
Last synced: 12 months ago
JSON representation
GridDB Node API
- Host: GitHub
- URL: https://github.com/griddb/node-api
- Owner: griddb
- License: apache-2.0
- Created: 2021-03-26T10:17:14.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-08-28T11:58:56.000Z (almost 3 years ago)
- Last Synced: 2025-06-01T22:09:58.272Z (about 1 year ago)
- Language: C++
- Size: 353 KB
- Stars: 4
- Watchers: 5
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README-NPM.md
- License: LICENSE
Awesome Lists containing this project
README
GridDB Node API
## Overview
[GridDB](https://github.com/griddb/griddb) is Database for IoT with both NoSQL interface and SQL Interface.
GridDB Node API is developed using GridDB C Client and [node-addon-api](https://github.com/nodejs/node-addon-api).
## Operating environment
Building of the library and execution of the sample programs have been checked in the following environment.
OS: CentoS7.9(x64), Ubuntu 18.04(x64), Ubuntu 20.04(x64)
Node.js: v16
gcc/g++: >= 7
GridDB C client: V5.0.0 CE
GridDB server: V5.0.0 CE, CentOS 7.9(x64)
## Preparations
* Install [GridDB Server](https://github.com/griddb/griddb)
* Install [C Client](https://github.com/griddb/c_client).
* (Ubuntu)
```console
$ wget https://github.com/griddb/c_client/releases/download/v5.0.0/griddb-c-client_5.0.0_amd64.deb
$ sudo dpkg -i griddb-c-client_5.0.0_amd64.deb
```
* (CentOS)
```console
$ wget https://github.com/griddb/c_client/releases/download/v5.0.0/griddb-c-client-5.0.0-linux.x86_64.rpm
$ sudo rpm -ivh griddb-c-client-5.0.0-linux.x86_64.rpm
```
## QuickStart
### Install
$ npm install griddb-node-api
### How to run sample
GridDB Server need to be started in advance.
1. The command to run sample
$ cp node_modules/griddb-node-api/sample/sample1.js .
$ node sample1.js
-->[ 'name01', false, 1, ]
### Install gcc/g++:
1. CentOS 7(x64)
```console
# Install gcc/g++ 7 on centos 7.9
$ sudo yum install centos-release-scl
$ sudo yum install devtoolset-7-gcc-c++
# enable gcc/g++7 on centos 7.9
$ scl enable devtoolset-7 bash
```
2. Ubuntu 18.04/20.04(x64)
```
$ sudo apt-get install gcc g++
```