Real-time messaging within one chat box using spring websockets with spring REST API for fetching of logging.
Follow these steps for quick start of using the app
Make sure that these are installed in your local machine
- "git"
- "Node.js"
- "npm"
- "Intellij IDEA Ultimate" (Recommended)
Clone the repository
git clone https://github.com/xNeshi/live-group-chat
Install the packages
cd frontend
npm install
# Start Intellij IDEA Ultimate
# Open backend file only
mvn clean install
Setup the environmental variables
Check the backend/.env.example
. Copy paste the config then paste it on a new .env file. Modify base on your database configurations.
# backend/.env.exmaple
DB_NAME=messages
DB_HOST=localhost
DB_PORT=3306
DB_TYPE=mysql
DB_USERNAME=
DB_PASSWORD=
DB_DDL-AUTO=update
DB_DRIVER=com.mysql.cj.jdbc.Driver
DB_DIALECT=MySQLDialect
Run the project
# start the backend
mvn spring-boot:run
# start the frontend
npm run dev
Project should be running on http://localhost:3000. All users only use one link