This project contains the source code for a realtime chat application with sentiment analysis. With sentiment analysis, we are able to detect the mood of a person based on the words they use in their chat messages.
- Clone the repository into a new directory on your machine.
- Install the dependencies by running the following command from the new directory.
npm install
or using yarn
yarn add
- Create a
.env
file in the root of the new directory with the following content.
# Pusher App Credentials
PUSHER_APP_ID=YOUR_APP_ID
PUSHER_APP_KEY=YOUR_APP_KEY
PUSHER_APP_SECRET=YOUR_APP_SECRET
PUSHER_APP_CLUSTER=YOUR_APP_CLUSTER
- Start the app by running the following command. The app will runs on port 3000 except that port is already in use.
npm run dev
For production
npm start