Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 861 Bytes

README.md

File metadata and controls

49 lines (40 loc) · 861 Bytes

chat

A Chat Scaffold based on antd and dva:

Screenshots:

Firebase Structure

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

Install

git clone https://github.com/RaoHai/chat.git
cd chat
npm install
npm start // enjoy :D