- Clone the repository
- Install the dependencies by running: npm install
- Create a .env file in the root directory and add the following variables: PORT=PORT DATABASE=database_name HOST=database_host USER=database_user PASSWORD=database_password JWT_SECRETKEY=Your_secret_key
- Run the app using: npm start or npm run dev.
- Navigate to the registration page.
- Enter your information in the form.
- Submit the form.
- The server will validate the user's information, create a new user in the database, and return a response to the client.
- Navigate to the login page.
- Enter your credentials in the form.
- Submit the form.
- The server will validate the user's credentials, create a JSON Web Token, and return a response to the client.
- Select the group you want to chat in.
- Enter your message in the chat box.
- Submit the form.
- The server will validate the request, add the message to the database, and broadcast the message to all connected clients.
This Group Chat Application is designed with scalability, security, and ease of maintenance in mind. Its architecture, consisting of a client, server, and database, ensures efficient communication between the client and the server. The use of Node.js, Sequelize, and WebSockets provide fast and efficient communication, while the use of MySQL and Sequelize ensure that the system is able to handle large amounts of data.