Skip to content

Commit

Permalink
private chating supported
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Dec 27, 2016
1 parent b7de462 commit f03fe95
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,43 @@
# chat
A Chat Scaffold based on antd and dva:

Screenshots:
-----

![](https://cloud.githubusercontent.com/assets/566097/21448864/2dc1a59c-c922-11e6-9b80-726593d8163d.png)

![](https://cloud.githubusercontent.com/assets/566097/21494490/f28c2eb0-cc4c-11e6-83b8-723ae1423328.png)

Firebase Structure
-----

```
root: {
conversations: { // conversations
'-2h6WJbFPBxUs15iB15DnSAIRTyP2-1482823102860': {
participants: {
'2h6WJbFPBxUs15iB15DnSAIRTyP2': user,
'1482823102860': user
},
chats: {
'-KZzCufnRDtS4h0q9fL': {
content: '',
time: '',
user: {}
}
}
},
...
},
user: { // online users
'2h6WJbFPBxUs15iB15DnSAIRTyP2': user,
...
}
}
```


### Install
Install
------

```
Expand Down

0 comments on commit f03fe95

Please sign in to comment.