The frontend for the web chat application is developed using React.js and Material-UI for building the user interface. Socket.IO is used for real-time communication with the backend server. JWT is employed for user authentication, and Axios is used for making HTTP requests to the backend API. The frontend is developed using TypeScript for type safety and improved code maintainability.
- React.js: JavaScript library for building user interfaces
- Material-UI: React components library for UI design
- Socket.IO: Real-time communication between clients and server
- JWT: JSON Web Tokens for user authentication
- Axios: Promise-based HTTP client for the browser and Node.js
- TypeScript: Superset of JavaScript for enhanced type checking and readability
- Clone the repository
- Navigate to the frontend directory
- Run
npm install
to install dependencies - Update the backend API URL in the
.env
file - Run
npm start
to start the development server
- Update the
.env
file with the backend API URL.
- The frontend provides a user interface for sending and receiving messages, user authentication, and other functionalities.
- Real-time messaging is facilitated through Socket.IO connection with the backend server.