This repository contains the back-end code for the ChattingApp project, developed using Spring Boot. It provides the server-side logic for user authentication, real-time messaging, and other core functionalities. The application is designed to work in conjunction with the ChattingApp-React front-end application.
- Real-time Messaging: Supports real-time chat functionality.
- User Management: Handles user registration, authentication, and profile management.
- RESTful API: Provides a set of APIs for the front-end to interact with.
- Scalable Architecture: Built on a scalable and robust Spring Boot framework.
-
Clone the repository:
git clone https://github.com/qossayrida/ChattingApp-SpringBoot.git cd ChattingApp-SpringBoot
-
Configure the database connection in
application.properties
:spring.datasource.url=jdbc:postgresql://localhost:5432/your-database spring.datasource.username=your-username spring.datasource.password=your-password
-
Build and run the application:
mvn spring-boot:run
The application will be available at
http://localhost:8080
.
POST /api/auth/register
- Register a new userPOST /api/auth/login
- Authenticate a userGET /api/messages
- Fetch messagesPOST /api/messages
- Send a message
Please take a look at the full API documentation for more details.
The back-end service is designed to work with the ChattingApp-React front-end application. Ensure the front-end is configured to communicate with the appropriate API endpoints.
Watch the video demonstration of the ChattingApp project to see the app in action:
Example.about.WebSocket.mp4
Contributions are welcome! Please fork this repository and submit a pull request for any improvements or bug fixes.