Giter Club home page Giter Club logo

fire-chat's Introduction

Fire Chat

DEMO

https://s3-ap-northeast-1.amazonaws.com/fire-chat/fire-chat-demo.html

利用者向け

使い方

<html>
  <head>
    <link rel="import" href="https://s3-ap-northeast-1.amazonaws.com/fire-chat/fire-chat.html" />
  </head>
  <body>
    <fire-chat auth-domain="xxx-12345.firebaseapp.com" database="https://xxx-12345.firebaseio.com/" api-key="xxxxxxxxxxxxxxxx" room-id="[[ルームID]]" user="[[ユーザー情報]]" />
  </body>
</html>
  • ルームID  チャットルームのIDです。ユニークに自由に設定してください。
  • ユーザー情報  ユーザー情報です。JSON形式で指定してください。{"id": 1, "name": "Taro", "photoUrl": "https://xxx.com/users/1.png"}のような形式です。  JavaScriptによって設定する場合は以下のような形です。
      document.querySelector('fire-chat').set('user', {"id": 1, "name": "Taro", "photoUrl": "https://xxx.com/users/1.png"])
    

開発者向け

準備

  • yarn install
  • bower install

開発

  • yarn run dev

ビルド(1ファイル化)

  • yarn run build

fire-chat's People

Contributors

akihitofujiwara avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.