Skip to content

Real-time chat application built with Spring Boot and WebSocket, featuring user authentication and message broadcasting.

Notifications You must be signed in to change notification settings

qossayrida/ChattingApp-SpringBoot

Repository files navigation

ChattingApp-SpringBoot

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.

Features

  • 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.

Getting Started

Installation

  1. Clone the repository:

    git clone https://github.com/qossayrida/ChattingApp-SpringBoot.git
    cd ChattingApp-SpringBoot
  2. 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
  3. Build and run the application:

    mvn spring-boot:run

    The application will be available at http://localhost:8080.

API Endpoints

  • POST /api/auth/register - Register a new user
  • POST /api/auth/login - Authenticate a user
  • GET /api/messages - Fetch messages
  • POST /api/messages - Send a message

Please take a look at the full API documentation for more details.

Front-end Integration

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.

Demo

Watch the video demonstration of the ChattingApp project to see the app in action:

Example.about.WebSocket.mp4

Contributing

Contributions are welcome! Please fork this repository and submit a pull request for any improvements or bug fixes.

🔗 Links

facebook

Whatsapp

linkedin

twitter

About

Real-time chat application built with Spring Boot and WebSocket, featuring user authentication and message broadcasting.

Topics

Resources

Stars

Watchers

Forks

Languages