Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

Commit 9c47d4b

Browse files
committed
Split up Usage and Tutorial in README.md
1 parent b65db07 commit 9c47d4b

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,24 @@
99
## Usage
1010
If you are using the default options, setting up JWT auth for your Feathers app is as simple as the below example. Note: You must set up the `body-parser` module before setting up `feathers-authentication`.
1111

12+
```js
13+
var app = feathers()
14+
.configure(feathers.rest())
15+
.configure(feathers.socketio())
16+
.configure(hooks())
17+
.use(bodyParser.json())
18+
.use(bodyParser.urlencoded({ extended: true }))
19+
20+
// Configure feathers-authentication
21+
.configure(feathersAuth({
22+
secret: 'feathers-rocks'
23+
}));
24+
```
25+
26+
## Getting Started Tutorial
27+
28+
Here's a more complete example that you can use to get started.
29+
1230
```js
1331
/* * * Import Feathers and Plugins * * */
1432
var feathers = require('feathers');

0 commit comments

Comments
 (0)