This is a Java-based Twitter simulation project that replicates some of the core features of the popular social media platform Twitter. The project is implemented using Java for the server-side, JavaFX for the client-side GUI, SQLite for data management, JWT for user authentication, and TCP sockets for maintaining the connection between the server and the client. The project follows the Model-View-Controller (MVC) design pattern for organizing the codebase.
Authentication: User authentication is implemented using JSON Web Tokens (JWT), ensuring secure access to the platform.
Signup and Login: Users can create accounts by signing up with their credentials. Existing users can log in to their accounts.
Timeline: The timeline displays tweets from followed users, including the ability to view original tweets, retweets, quotes, and replies.
Tweet Actions: Users can create new tweets, retweet, quote, like, and reply to tweets posted by others.
User Profiles: Each user has a profile page that showcases their information, including followers, followings, avatar, headline, bio, location, and website.
Following and Blocking: Users can follow and unfollow each other. They can also block and unblock other users.
Explorer: The explorer feature allows users to search for other users and hashtags within the platform.
Direct Messages: Users can send and receive direct messages, enabling private conversations between users.
- Java for server-side logic and socket communication
- JavaFX for the client-side graphical user interface
- SQLite for local data storage and management
- JSON Web Tokens (JWT) for user authentication
- Model-View-Controller (MVC) design pattern for code organization
- Clone this repository to your local machine.
- Open the server-side code in your preferred Java IDE.
- Build and run the server-side code to start the server.
- Open the client-side code in your preferred Java IDE.
- Build and run the client-side code to launch the GUI.
- Follow the on-screen instructions to sign up or log in and start using the Twitter simulation.
Clone this repository to your local machine:
git clone https://github.com/your-username/twitter-simulation.gitRun the Server:
- Open a terminal and navigate to the server-side directory:
cd src/main/java/com/example/twitter_client/Server - Compile and run the server code:
javac Main.java java Main
- Open a terminal and navigate to the server-side directory:
Run the Client:
- Open another terminal window and navigate to the client-side directory:
cd src/main/java/com/example/twitter_client - Compile and run the client code:
javac Main.java java Main
- Open another terminal window and navigate to the client-side directory:
Follow the on-screen instructions to sign up or log in and start using the Twitter simulation.
Note: Make sure you have Java and Git installed on your system before running the commands.
Contributions to this project are welcome. Feel free to open issues and pull requests for bug fixes, improvements, or new features
The external libraries used in the project are AnimateFX, jdbc for sqlite, auth0/java-jwt for jwt authentication,
By Calbon :)


