This repository contains the backend code for a simple chat application built with Spring Boot and uses MySQL as the database. The backend provides RESTful API endpoints for user authentication, managing user profiles, and sending/receiving messages in real-time using WebSocket.
This chat app, offers user registration via name and email, with email-based login. It simplifies friend connections through names and supports private messaging. This Chat App is built on a robust tech stack. Its backend relies on the Spring Boot Java framework, ensuring scalability and security. The frontend is developed using React for a dynamic user interface. Data is stored and managed using MySQL, ensuring reliability and efficient data retrieval.
Before you begin, ensure you have met the following requirements:
- Java Development Kit (JDK) installed (e.g., OpenJDK 11)
- MySQL database server installed
- Your favorite Integrated Development Environment (IDE) for Java (e.g., IntelliJ IDEA, Eclipse)
- Maven for managing dependencies
-
Clone the repository:
https://github.com/SabbirIrfan/chat/
-
Open the project in intellij .
Configure your MySQL database connection in src/main/resources/application.properties. You can use the following properties as a starting point: properties
spring.datasource.url=jdbc:mysql://localhost:3306/"YOUR_DATA_BASE_NAME"
spring.datasource.username=your_username
spring.datasource.password=your_password
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
Build and run the application from your IDE :
or using the following command:
sh
mvn spring-boot:run
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.