-
to start the project use:
yarn run start
-
to run the project properly, you must:
-
Have a PubNub Profile with generated keys
-
create an
.env
file with the followingkey=value
pairsREACT_APP_PUBLISH_KEY=
your publish key
REACT_APP_SUBSCRIBE_KEY=your subscribe key
-
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.
- 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
- patched initial channels configuration
- patched double message sending
- 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
- patched
package.json
andREADME.md
- added sounds for message sending and recieving, when in a channel (offchannel notifications TBA)
- installed
use-sound
dependency
- installed
- 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
- chat functionality
- channel switching
- hardcoded name
- hardcoded pubnub credentials