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 Feb 15, 2023. It is now read-only.
[stream-node-orm](https://github.com/GetStream/stream-node-orm) is a Node.js (Sails, Waterline) client for [Stream](https://getstream.io/).
9
+
[stream-node-orm](https://github.com/GetStream/stream-node-orm) is a Node.js (Mongoose & Waterline) client for [Stream](https://getstream.io/).
10
10
11
11
You can sign up for a Stream account at https://getstream.io/get_started.
12
12
13
13
Note there is also a lower level [Node.js - Stream integration](https://github.com/getstream/stream-js) library which is suitable for all JavaScript applications.
14
14
15
-
### Build activity streams & news feeds
15
+
### Build Activity Streams & News Feeds
16
16
17
17
<palign="center">
18
18
<imgsrc="https://dvqg2dogggmn6.cloudfront.net/images/mood-home.png"alt="Examples of what you can build"title="What you can build"/>
@@ -37,7 +37,7 @@ Stream node currently supports:
37
37
38
38
You can check out our example app on Github [https://github.com/GetStream/Stream-Example-Nodejs](https://github.com/GetStream/Stream-Example-Nodejs)
Every time a Tweet is created it will be added to the user's feed. Users which follow the given user will also automatically get the new tweet in their feeds.
77
77
78
-
####Activity fields
78
+
####Activity Fields
79
79
80
80
Models are stored in feeds as activities. An activity is composed of at least the following fields: **actor**, **verb**, **object**, **time**. You can also add more custom data if needed.
81
81
The Activity mixin will try to set things up automatically:
To follow the created newsfeeds you need to notify the system about follow relationships. The manager comes with APIs to let a user's news feeds follow another user's feed. This code lets the current user's flat and aggregated feeds follow the target_user's personal feed.
186
186
187
187
```
188
188
FeedManager.followUser(userId, targetId);
189
189
```
190
190
191
-
### Showing the newsfeed
191
+
### Showing the Newsfeed
192
192
193
-
####Activity enrichment
193
+
####Activity Enrichment
194
194
195
195
When you read data from feeds, a like activity will look like this:
When needed you can also use the [low level JavaScript API](https://github.com/getstream/stream-js) directly. Documentation is available at the [Stream website](https://getstream.io/docs/?language=js).
By default the enrichment system assumes that you're referencing items by their id. Sometimes you'll want to customize this behaviour. You might for instance use a username instead of an id. Alternatively you might mant to use a caching layer instead of the ORM for loading the data. The example below shows how to customize the lookup for all User entries.
270
+
By default the enrichment system assumes that you're referencing items by their id. Sometimes you'll want to customize this behavior. You might for instance use a username instead of an id. Alternatively you might mant to use a caching layer instead of the ORM for loading the data. The example below shows how to customize the lookup for all User entries.
271
271
272
272
```js
273
273
// subclass streamMongoose
@@ -312,7 +312,14 @@ npm install
312
312
npm version [ major | minor | patch ]
313
313
npm publish
314
314
```
315
-
=======
315
+
316
+
### Supported Node.js Versions
317
+
```
318
+
v8.x
319
+
v7.x
320
+
v6.x
321
+
```
322
+
316
323
### Copyright and License Information
317
324
318
325
Copyright (c) 2015-2017 Stream.io Inc, and individual contributors. All rights reserved.
0 commit comments