Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 1.85 KB

README.md

File metadata and controls

71 lines (47 loc) · 1.85 KB

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