This project is a Chat Mood Analyzer, which evaluates the mood of users based on their messages. It uses WebSockets for real-time communication and updates. The application consists of a backend server to manage WebSocket connections and a frontend built with React and Vite. The mood is analyzed using emojis and a weighted scoring system.
- Real-time mood analysis based on message content.
- Emoji-based mood scoring with weighted values.
- Persistent user data and message history using localStorage.
- WebSocket-based real-time communication.
- User authentication and message handling.
- AI-generated emoji and communication advice.
- Node.js
- npm or yarn
- Vite
-
Navigate to the backend folder:
cd backend -
Install dependencies:
npm install
-
Start the WebSocket and Express server:
node index.js
-
Navigate to the frontend folder:
cd frontend -
Install dependencies:
npm install
-
Start the Vite development server:
npm run dev
- Start the backend server as described above.
- Start the frontend development server as described above.
- Open your browser and navigate to the URL provided by Vite (usually
http://localhost:3000). - Log in with a username to start analyzing your mood based on your messages.