Skip to content

About

a twitter simulation project for AP course at AUT

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Twitter Simulation Project

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.

Features

  • 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.

Technologies Used

  • 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

How to Run

  1. Clone this repository to your local machine.
  2. Open the server-side code in your preferred Java IDE.
  3. Build and run the server-side code to start the server.
  4. Open the client-side code in your preferred Java IDE.
  5. Build and run the client-side code to launch the GUI.
  6. Follow the on-screen instructions to sign up or log in and start using the Twitter simulation.

How to Run without java IDE

  1. Clone this repository to your local machine:

    git clone https://github.com/your-username/twitter-simulation.git
  2. Run 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
  3. 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
  4. 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.

Screenshots

Contributing

Contributions to this project are welcome. Feel free to open issues and pull requests for bug fixes, improvements, or new features

Acknowledgements

The external libraries used in the project are AnimateFX, jdbc for sqlite, auth0/java-jwt for jwt authentication,


By Calbon :)

About

a twitter simulation project for AP course at AUT

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages