Skip to content

FastLiteMessage : simple chat application made with React and Spring Boot

License

Notifications You must be signed in to change notification settings

Thibaut-Mouton/react-spring-messenger-project

Repository files navigation

maven build status npm build status

React logo Spring boot logo

FastLiteMessage

Real time chat application group oriented built with React and Spring Boot. Talk with your friends, create and add users to conversation, send messages or images, set groups administrators and start video calls ! (coming soon)

Project Requirements

Project fast start up

In a hurry ? Juste type docker-compose up in the root directory. This will start 3 containers : MySQL, backend and frontend together. Liquibase will take care of the database setup. For development purpose, the DB is filled with 5 accounts (password: root) :

  • Thibaut
  • Mark
  • John
  • Luke
  • Steve
Warning : Be sure that no other app is running on port 3000, 9090 or 3306

Project development set up

  • This project use liquibase as a version control for database. When you will start backend, all tables and structures will be generated automatically.
  • You can disable Liquibase by setting spring.liquibase.enabled=false in application.properties.
  • To try the project on localhost, check that nothing runs on ports 9090 (Spring Boot) and 3000 (React app)
  • You can edit spring.datasource in backend/src/main/resources/application.properties and username and password in backend/src/main/resources/liquibase.properties with your own MySQL login / password
  • Create a database named "fastlitemessage_dev" or you can also modify the name in the properties files mentioned just above.

Start backend

  • Go inside backend folder then type mvn spring-boot:run to launch backend.
  • Or you can type mvn clean package to generate a JAR file and then start server with java -jar path/to/jar/file (Normally in inside backend/target/)

Start frontend

  • Go inside frontend-web folder and then type npm run start

Disclaimer

  • Please note there is no specific security over websockets.
  • Docker setup is not production ready

Project overview

Project overview

  • Simple chat group application
  • Send images
  • Start video calls
  • Secure user account
  • Room discussion
  • Chat group administrators
  • Add / remove users from conversation
  • Dark / Light Mode