Code Monkey home page Code Monkey logo

pubnub-chat's Introduction

PubNub React app

Info

  • to start the project use:

    yarn run start

  • to run the project properly, you must:

  1. Have a PubNub Profile with generated keys

  2. create an .env file with the following key=value pairs

    REACT_APP_PUBLISH_KEY=your publish key REACT_APP_SUBSCRIBE_KEY=your subscribe key

  3. Pass a uuid prop to the <ChatContainer /> component, like this:

    <ChatContainer uuid='username'/>

*project only tested on localhost

*project made with Node v12.19.0.

Changelog

version 0.4.0

  • redesigned Channels menu
    • moved channels to the right
    • stylized search input
    • made menu collapsible
    • added user profile on lower left of the channels menu
    • added a channels collapse button
    • added animations
  • added current channel label in the header

version 0.3.2

  • patched initial channels configuration
  • patched double message sending

version 0.3.0

  • added support for emojies
  • added a bunch of emojies
  • added a dedicated emoji button
  • added an idle page when the user is not subscribed to any channel
  • optimized data fetching, browser no longer fetches data if user starts with empty channel list
  • inputs now disabled when user is not subscribed to any channel

version 0.2.1

  • patched package.json and README.md

version 0.2.0

  • added sounds for message sending and recieving, when in a channel (offchannel notifications TBA)
    • installed use-sound dependency
  • optimised messages, now they are fetched for the individual channel everytime you switch
  • formatted chat with colors and timestamps
  • added ability to pass username as a prop to the chat component
  • added .env file, to store API data

version 0.1.0

  • chat functionality
  • channel switching
  • hardcoded name
  • hardcoded pubnub credentials

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.