RaoHai / chat

A Chat Scaffold based on antd and dva:

Home Page:https://raohai.github.io/chat/#/chatroom?_k=ejfcux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Chat Scaffold based on antd and dva:

https://raohai.github.io/chat/#/chatroom?_k=ejfcux


Languages

Language:JavaScript 82.7%Language:CSS 16.8%Language:HTML 0.5%