@@ -8,36 +8,37 @@ GridDB Node API is developed using GridDB C Client and [node-addon-api](https://
8
8
9
9
Building of the library and execution of the sample programs have been checked in the following environment.
10
10
11
- OS: CentOS 7(x64)/Ubuntu 18.04(x64)
11
+ OS: CentOS 7(x64)/Ubuntu 18.04(x64)/Windows 10/MacOS 10.15
12
12
Node.js: v12
13
13
GridDB C client: V4.5 CE
14
14
GridDB server: V4.5 CE, CentOS 7.6(x64)
15
15
16
- ## QuickStart (CentOS 7/Ubuntu 18.04(x64))
17
-
18
- ### Preparations
16
+ ## Preparations
19
17
20
18
Install [ GridDB Server] ( https://github.com/griddb/griddb ) and [ C Client] ( https://github.com/griddb/c_client ) .
21
19
22
- Set LIBRARY_PATH.
23
-
24
- export LIBRARY_PATH=$LIBRARY_PATH:<C client library file directory path>
20
+ ## QuickStart (CentOS 7/Ubuntu 18.04(x64)/MacOS 10.15)
25
21
26
22
### Build
27
- 1. The command to run build project
28
- $ npm install
23
+ 1. Set LIBRARY_PATH.
29
24
30
- 2. Set the NODE_PATH variable for griddb Node.js module files.
25
+ export LIBRARY_PATH=$LIBRARY_PATH:<C client library file directory path>
31
26
32
- $ export NODE_PATH=<installed directory path>
27
+ 2. The command to run build project
33
28
34
- 3. Write require("griddb-node-api") in Node.js.
29
+ $ npm install
30
+
31
+ 3. Set the NODE_PATH variable for griddb Node.js module files.
32
+
33
+ $ export NODE_PATH=<installed directory path>
34
+
35
+ 4. Write require("griddb-node-api") in Node.js.
35
36
36
37
### How to run sample
37
38
38
39
GridDB Server need to be started in advance.
39
40
40
- 1. Set LD_LIBRARY_PATH
41
+ 1. Set LD_LIBRARY_PATH.
41
42
42
43
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:<C client library file directory path>
43
44
@@ -47,6 +48,31 @@ GridDB Server need to be started in advance.
47
48
<GridDB cluster name> <GridDB user> <GridDB password>
48
49
-->[ 'name01', false, 1, <Buffer 41 42 43 44 45 46 47 48 49 4a> ]
49
50
51
+ ## QuickStart (Windows 10)
52
+
53
+ ### Build and run in cmd
54
+ 1. Correct the path to C Client "C_CLIENT_PATH" in binding.gyp. Default is 'C:/Program Files/GridDB/C Client/4.5.0'
55
+
56
+ 2. The command to run build project
57
+
58
+ $ npm install
59
+
60
+ 3. Set the NODE_PATH variable for griddb Node.js module files.
61
+
62
+ $ set NODE_PATH=<installed directory path>
63
+
64
+ 3. Write require("griddb-node-api") in Node.js.
65
+
66
+ ### How to run sample
67
+
68
+ GridDB Server need to be started in advance.
69
+
70
+ 1. The command to run sample
71
+
72
+ $ node sample/sample1.js <GridDB notification address> <GridDB notification port>
73
+ <GridDB cluster name> <GridDB user> <GridDB password>
74
+ -->[ 'name01', false, 1, <Buffer 41 42 43 44 45 46 47 48 49 4a> ]
75
+
50
76
## Document
51
77
52
78
- [ Node API Reference] ( https://griddb.github.io/node-api/NodeAPIReference.htm )
0 commit comments