Skip to content

A Chat Application implemented in SpringBoot using WebSockets for two-way communication.

License

Notifications You must be signed in to change notification settings

Prasad2531/Chat-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Application with Spring Boot and Websockets

This project is a chat application built with Spring Boot and uses Websockets as communication medium.

Technologies Used

Socket.io Spring Boot

Screenshot 2024-04-23 115413

Installation

  1. Prerequisites:

    • Java 11 or higher
    • Maven (for building the project)
  2. Running the Application:

    • Clone the repository:

      git clone <repository-url>
    • Build the project:

      cd chat-application
      mvn clean package
    • Run the Spring Boot application:

      java -jar target/chat-application.jar
  3. Accessing the Application:

Usage

  • Open multiple browser tabs or devices to simulate multiple users.
  • Start chatting with other users in real-time.

Project Structure

  • src/main/java/com/example/chat/: Contains the main application code.

    • ChatController.java: Defines the REST endpoints for the chat application.
    • ChatService.java: Implements the business logic for the chat functionality.
    • WebSocketConfig.java: Configures the Websocket endpoint and message broker.
  • src/main/resources/: Contains application properties and static resources.

Configuration

Application configurations can be modified in src/main/resources/application.properties.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

About

A Chat Application implemented in SpringBoot using WebSockets for two-way communication.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published