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 }}
Repository navigation
Commit fbf1d5b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+11-20Lines changed: 11 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
Linked Data Platform server based on [rdflib.js](https://github.com/linkeddata/rdflib.js) and [node.js](https://nodejs.org/). This is all you need to run distributed linked data apps on top of the file system.
8
8
9
-
You can run ldnode as a [command-line tool](https://github.com/linkeddata/ldnode/blob/master/README.md#command-line-tool) or as a [library](https://github.com/linkeddata/ldnode/blob/master/README.md#library) for your Nodejs/express app.
9
+
You can run ldnode as a [command-line tool](https://github.com/linkeddata/ldnode/blob/master/README.md#command-line-tool) or as a [library](https://github.com/linkeddata/ldnode/blob/master/README.md#library) for your Nodejs/Express app.
10
10
11
11
## Features
12
12
@@ -60,8 +60,8 @@ npm install
60
60
61
61
The library provides two APIs:
62
62
63
-
-`ldnode.createServer(settings)`: starts a ready to use Express app.
64
-
-`lnode(settings)`: creates an Express routes that you can mount in your existing express app
63
+
-`ldnode.createServer(settings)`: starts a ready to use [Express](http://expressjs.com) app.
64
+
-`lnode(settings)`: creates an [Express](http://expressjs.com)that you can mount in your existing express app.
65
65
66
66
In case the `settings` is not passed, then it will start with the following default settings.
67
67
@@ -82,28 +82,30 @@ In case the `settings` is not passed, then it will start with the following defa
82
82
}
83
83
```
84
84
85
-
86
85
##### Simple
87
86
88
-
You can create an ldnode ready to use Express server using `ldnode.createServer(opts)`
87
+
You can create an ldnode server ready to use using `ldnode.createServer(opts)`
89
88
90
89
```javascript
91
90
var ldnode =require('ldnode')
92
-
93
-
var ldp =ldnode.createServer()
91
+
var ldp =ldnode.createServer({
92
+
key:'/path/to/sslKey.pem',
93
+
cert:'/path/to/sslCert.pem',
94
+
webid:true
95
+
})
94
96
ldp.listen(3000, function() {
95
97
// Started Linked Data Platform
96
98
})
97
99
```
98
100
99
101
##### Advanced
100
102
101
-
You can integrate it with your existing express app just by using `lnode(opts)`
103
+
You can integrate ldnode in your existing express app, by mounting the ldnode app on a specific path using `lnode(opts)`.
0 commit comments