Skip to content

BoZhiDeng/Chat_Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Engine Application

Overview

Chat Engine is a real-time chat application that enables users to register, log in, and engage in live chat conversations. The application leverages a serverless architecture model, utilizing state-of-the-art web development technologies.

Technologies

This project uses the following key technologies:

  • Spring Boot: Simplifies the bootstrapping and development of new Spring applications.
  • Spring Security: Provides authentication and authorization services.
  • Spring Data JPA: Facilitates the integration of JPA-based repositories.
  • Spring WebSocket: Manages WebSocket communication.
  • Thymeleaf: Serves as a server-side Java template engine.
  • Lombok: Reduces boilerplate code in Java.
  • MySQL: Acts as the relational database to store user and chat data.
  • Maven: Handles project build and dependency management.

Configuration

The application.properties file contains configurable settings for the database connection, such as the URL, username, and password, as well as application-specific settings like the maximum number of chat messages to retain in history. You can also adjust the server's port and context path if needed:

Example of database configuration

spring.datasource.url=jdbc:mysql://localhost:3306/chat_engine spring.datasource.username=yourusername spring.datasource.password=yourpassword

Default port configuration

8080

##Prerequisites Before you begin the deployment process, ensure that you have the following prerequisites:

  1. Java Development Kit (JDK) 17 installed on the deployment server. 2 Maven 3.9.6 installed on the deployment server.
  2. MySQL Server running and accessible on localhost:3306 (configurable in application.properties).
  3. Maven for building the application.

Using the Application:

  1. Run cmd command "mvn spring-boot:run" at root file of this project or run src\main\java\com\BZD\Chat_Engine_Demo\ChatingApplication.java with your IDE to launch the application After launching the application:
  2. Navigate to http://localhost:8080/register to create a new user account.
image
  1. Once registered, go to http://localhost:8080/login to log in to the chat application.
image
  1. After logging in, you will be directed to the chat interface, where you can start messaging other users in real-time.
image

Change password or username:

  1. Click your icon on the corner
image
  1. Select option
image
  1. Input the new password or username and submit.
image image

Customization

You can customize the server's IP address and port in the application.properties file if you want to run the application on a different server or port.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published