Skip to content

EgglezosHub/ChatterBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Messaging-App (In Progress)

A simple Messaging App that I developed to practice my knowledge on:

  • Java FX
  • Python
  • Database Connectivity
  • Encryption with C++

Key features

  • Creating an account
  • Add other users from the database
  • Exchange messages with your contacts

Usage

  • After running the App:
    • If you already have an account
      • Login using your credentials
    • If you use the app for the first time
      • Register by pressing the "Register" button
      • Create a unique username and a secure password
      • Press the "Back to Login" button to return to Login Page
      • Login using your newly created credentials

alt text

  • After connecting to your account you can:
    • Add other users using the search bar on the top left (make sure to type the correct username)
    • Select contacts
    • Send messages

alt text

Installation

1. Download Java and Python


Navigate to the project folder in bash

  • Java:
sudo apt update
sudo apt install openjdk-21-jdk
  • Python:
sudo apt update
sudo apt install python3

2. Download Flask and Flask-Cors

Install pip

  sudo apt install python3-pip

Create a virtual environment

   sudo apt install python3-venv
   python3 -m venv env_test
   source env_test/bin/activate

Install Flask

   pip install Flask

Install Flask-Cors

   pip install Flask-Cors

3. Download JavaFX (Same version as Java)

  • Download JavaFX from GLUON
  • Extract the zip
  • Copy the path to the lib folder
  • Write the following command with Path_to_javafx-sdk-23.0.2/lib beeing the path to the lib folder of the JavaFX extracted zip file
  export PATH_TO_FX=Path_to_javafx-sdk-23.0.2/lib

4. Download GSON

wget https://repo1.maven.org/maven2/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar -P ~/Desktop/JavaFXApplication2/lib/
  • ~/Desktop/JavaFXApplication2/lib/ : location of cloned project

5. Compile & Run

cd src

Compile

javac --module-path /home/user/Downloads/openjfx-23.0.2_linux-x64_bin-sdk/javafx-sdk-23.0.2/lib
--add-modules javafx.controls,javafx.fxml,javafx.media
-cp ~/Desktop/JavaFXApplication2/lib/gson-2.10.1.jar
javafxapplication2/*.java
  • /home/user/Downloads/openjfx-23.0.2_linux-x64_bin-sdk/javafx-sdk-23.0.2/lib :

    • Exact Path to the downloaded (and extracted) Javafx File
  • ~/Desktop/JavaFXApplication2/lib/gson-2.10.1.jar :

    • Exact Path to the downloaded gson jar

Run

java --module-path /home/user/Downloads/openjfx-23.0.2_linux-x64_bin-sdk/javafx-sdk-23.0.2/lib \
--add-modules javafx.controls,javafx.fxml,javafx.media \
-cp ".:/home/user/Desktop/JavaFXApplication2/lib/gson-2.10.1.jar" \
javafxapplication2.JavaFXApplication2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published