You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 11, 2022. It is now read-only.
This repository contains the nodeclient files required by Nymph. For a directory of all official Nymph repositories, check out the [main Nymph repository](https://github.com/sciactive/nymph).
Nymph is an object data store that is easy to use in JavaScript and PHP.
6
6
7
-
The Nymph client requires some browser globals that Node doesn't provide, so this repository sets up some globals to provide them.
7
+
## Installation
8
+
9
+
You can install Nymph Node Client with NPM.
10
+
11
+
```sh
12
+
npm install --save nymph-client-node
13
+
```
14
+
15
+
This repository is the JavaScript client for Node. There is also a **[browser client](https://github.com/sciactive/nymph-client)**. For more information, you can see the [main Nymph repository](https://github.com/sciactive/nymph).
16
+
17
+
The Nymph client requires some browser globals that Node doesn't provide, so this client sets up some globals to provide them.
8
18
9
19
It also sets up Nymph.init to also call PubSub.init with your configs, so you don't need to set up PubSub yourself.
10
20
11
-
## How to Install and Use Nymph in Node
21
+
## Setting up Nymph in Node.js
12
22
13
-
To install, use npm:
23
+
<divdir="rtl">Quick Setup with NPM</div>
14
24
15
-
```
16
-
npm install --save nymph-client-node
25
+
```sh
26
+
npm install --save nymph-client
17
27
```
18
28
19
29
To use, require it as the Nymph object:
@@ -26,8 +36,8 @@ Then provide the options to Nymph.init:
console.log("\nNew Foobar Todo Updates: ", todos);
40
50
});
51
+
52
+
constmyTodo=newTodo();
53
+
myTodo.set({
54
+
name:"Foobar",
55
+
done:false
56
+
});
57
+
myTodo.save().then(() => {
58
+
alert("You've got new todos!");
59
+
});
41
60
```
61
+
62
+
For a thorough step by step guide to setting up Nymph on your own server, visit the [Setup Guide](https://github.com/sciactive/nymph/wiki/Setup-Guide).
63
+
64
+
## Documentation
65
+
66
+
Check out the documentation in the wiki, [Technical Documentation Index](https://github.com/sciactive/nymph/wiki/Technical-Documentation).
0 commit comments