Giter Site home page Giter Site logo

bos-chatroom-widget's Introduction

BOS Chatroom Widget

This is the single chatroom version of ChatV2 Widget App. Credits to Wenderson Pires.

A sample usage of the widget can be seen in this community page (please connect/subscribe to the page to view the hidden apps, including his chatroom widget ^_^): bbclan

Live App

Setup & Usage

  • Install all the dependencies:

    yarn install
  • Run app locally:

    • Start the app
    yarn start:app
    • Copy the code in widget/ChatV2.dev.jsx into NEAR BOS Sandbox to render the output
      • To change chat room, just edit room variable before rendering
  • Run viewer (not tested):

    yarn start:vm

    Now, you can see your changes in real time. Both in React App and Widget.

  • To build the app after local testing:

    • Delete the following files
    - .firebase
    - .firebaserc
    - firebase.json
    • Create a production build of the app using
    npm run build
    • Setup Firebase Hosting for this app (requires GCP Firebase service account permission)
      • Select dist folder as the public directory
    • After deploy, open up the hosted link to check that it is working.
    • Edit externalAppUrl variable in widget/ChatV2.jsx to the hosted link
    • Copy the code in widget/ChatV2.jsx into NEAR BOS Sandbox to render the output
      • To change chat room, just edit room variable before rendering

Libraries

NEAR Social Bridge: A library that allows you to create a common application using ReactJS and inject it in a controlled way into a Widget on Near Social. Therefore, the Widget talks to the React application and vice versa, making it possible to consume Discovery API resources within the React application.

NEAR Social Local Viewer: A CLI tool that allows you to run and test your Near Social Widgets locally using just your preferred code editor and your default browser.

bos-chatroom-widget's People

Contributors

gordonjun2 avatar

Stargazers

Wenderson Pires avatar

Watchers

 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.