Skip to content

Commit bd6a2ae

Browse files
authored
Feathers v4 chat (#118)
1 parent 837b2d1 commit bd6a2ae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3820
-1912
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"mocha": true
66
},
77
"parserOptions": {
8-
"ecmaVersion": 2017
8+
"ecmaVersion": 2018
99
},
1010
"extends": "eslint:recommended",
1111
"rules": {

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ node_modules
3838

3939
# IDE - VSCode
4040
.vscode/*
41-
!.vscode/settings.json
4241
!.vscode/tasks.json
4342
!.vscode/launch.json
4443
!.vscode/extensions.json
@@ -108,6 +107,7 @@ $RECYCLE.BIN/
108107
*.lnk
109108

110109
# Others
111-
test/data/
110+
lib/
112111
data/
113-
tmp/
112+
test/data
113+
.nyc_output

.npmignore

Lines changed: 0 additions & 30 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 Feathers
3+
Copyright (c) 2019 Feathers Contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22-

README.md

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,23 @@
22

33
[![Greenkeeper badge](https://badges.greenkeeper.io/feathersjs/feathers-chat.svg)](https://greenkeeper.io/)
44
[![Build Status](https://img.shields.io/travis/feathersjs/feathers-chat/master.svg)](https://travis-ci.org/feathersjs/feathers-chat)
5-
[![Dependency Status](https://img.shields.io/david/feathersjs/feathers-chat.svg)](https://david-dm.org/feathersjs/feathers-chat)
65

7-
> A Feathers real-time chat application
8-
9-
> __Important:__ This repository requires Node v8.0.0 or later.
6+
> A FeathersJS chat application
107
118
## About
129

13-
This project uses [Feathers](http://feathersjs.com). An open source web framework for building modern real-time applications. It provides a chat API created in [this guide](https://docs.feathersjs.com/guides/chat/readme.html) and a frontend in plain JavaScript and jQuery.
10+
This project uses [Feathers](http://feathersjs.com), a framework for real-time applications and REST APIs. It contains the chat application created in [the Feathers guide](https://docs.feathersjs.com/guides/) and a frontend in plain JavaScript.
11+
12+
![The Feathers chat application](https://docs.feathersjs.com/guides/basics/assets/feathers-chat.png)
1413

1514
Other chat frontends can be found at:
1615

17-
- [feathersjs-ecosystem/feathers-chat-react](https://github.com/feathersjs-ecosystem/feathers-chat-react)
18-
- [feathersjs-ecosystem/feathers-react-native-chat](https://github.com/feathersjs-ecosystem/feathers-react-native-chat)
19-
- [feathersjs-ecosystem/feathers-chat-angular](https://github.com/feathersjs-ecosystem/feathers-chat-angular)
20-
- [feathers-plus/feathers-chat-vuex](https://github.com/feathers-plus/feathers-chat-vuex)
16+
- React: [feathersjs-ecosystem/feathers-chat-react](https://github.com/feathersjs-ecosystem/feathers-chat-react)
17+
- React Native: [feathersjs-ecosystem/feathers-react-native-chat](https://github.com/feathersjs-ecosystem/feathers-react-native-chat)
18+
- Angular: [feathersjs-ecosystem/feathers-chat-angular](https://github.com/feathersjs-ecosystem/feathers-chat-angular)
19+
- VueJS with Vuex: [feathers-plus/feathers-chat-vuex](https://github.com/feathers-plus/feathers-chat-vuex)
20+
21+
> __Important:__ This project requires NodeJS 10 or later.
2122
2223
## Getting Started
2324

@@ -37,8 +38,6 @@ Getting up and running is as easy as 1, 2, 3.
3738
npm start
3839
```
3940
40-
4. Goto to browser and go to [localhost:3030/vanilla](http://localhost:3030/vanilla/)
41-
4241
## Testing
4342
4443
Simply run `npm test` and all your tests in the `test/` directory will be run.
@@ -48,20 +47,13 @@ Simply run `npm test` and all your tests in the `test/` directory will be run.
4847
Feathers has a powerful command line interface. Here are a few things it can do:
4948
5049
```
51-
$ npm install -g feathers-cli # Install Feathers CLI
50+
$ npm install -g @feathersjs/cli # Install Feathers CLI
5251

5352
$ feathers generate service # Generate a new Service
5453
$ feathers generate hook # Generate a new Hook
55-
$ feathers generate model # Generate a new Model
5654
$ feathers help # Show all commands
5755
```
5856
5957
## Help
6058
6159
For more information on all the things you can do with Feathers visit [docs.feathersjs.com](http://docs.feathersjs.com).
62-
63-
## License
64-
65-
Copyright (c) 2017
66-
67-
Licensed under the [MIT license](LICENSE).

config/default.json

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,34 @@
66
"default": 10,
77
"max": 50
88
},
9-
"nedb": "../data",
109
"authentication": {
11-
"secret": "72d5461502f978d28c44dec474ff08359386df227269f34a17fc7d160f275a7dc8366087f72e3e3246e5d3dcb5a3505c2248d0f977d79dd1ca874c0cb4e9bd75f4ce1ccfc4604040afb37633f0e76cb3a254e974ff1872ee7edccecf2cac84b652d5f9a12e0bc4ae75ae5d628102f663681e716b9c0e6f262541f186ec9ca004604491fe05882206692f8e8653d578eac161d69cd14f51986ace729695fd2e551597f599eb54816c6e706dc4af478a826c890ad90e03105bf0c2d36461799888481104d3ee274cdfe87728ff5692699d143af078ed890e6d9971097088884f6d616b8c2abaf06671ad12746bb2353ca354c41c1427b76353dc72c9e47d45e2f6",
12-
"strategies": [
10+
"oauth": {
11+
"redirect": "/",
12+
"github": {
13+
"key": "<Client ID>",
14+
"secret": "<Client secret>"
15+
}
16+
},
17+
"entity": "user",
18+
"service": "users",
19+
"secret": "Ej0XhakSOO92QbeyLKDUqsZPQks=",
20+
"authStrategies": [
1321
"jwt",
1422
"local"
1523
],
16-
"path": "/authentication",
17-
"service": "users",
18-
"jwt": {
24+
"jwtOptions": {
1925
"header": {
2026
"typ": "access"
2127
},
2228
"audience": "https://yourdomain.com",
23-
"subject": "anonymous",
2429
"issuer": "feathers",
2530
"algorithm": "HS256",
2631
"expiresIn": "1d"
2732
},
2833
"local": {
29-
"entity": "user",
3034
"usernameField": "email",
3135
"passwordField": "password"
3236
}
33-
}
37+
},
38+
"nedb": "../data"
3439
}

config/test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"nedb": "../test/data"
3-
}
3+
}

0 commit comments

Comments
 (0)