Dor-sketch / USocial

A C++ coursework project on social media system simulation, featured in my professional portfolio.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🌐 USocial - A Basic Social Media System in C++

USocial is a basic social media system simulation written in C++. It offers a suite of functionalities that mirror core features of popular social media platforms. This project allows users to engage in typical social media activities, from posting text and multimedia πŸ“ΈπŸŽ₯🎡 to adding friends πŸ‘« and exchanging messages βœ‰οΈ.

Originally conceived as a coursework project for the Open University of Israel course "Defensive System-Programming (20937)", it now serves a dual role, also being a part of a job application portfolio for students.


πŸ“š Table of Contents


πŸ”§ Technologies Used

  • C++: The primary language used, incorporating C++14 features.

  • Smart Pointers: Usage of std::shared_ptr and std::weak_ptr to manage resources efficiently and prevent memory leaks.

  • Standard Library Containers: Leveraged std::map and std::list for data storage and management.

  • Exception Handling: Integrated throughout for handling potential error scenarios.

  • Object-Oriented Principles: The architecture is built upon principles like inheritance and polymorphism.

🌟 Features

🌐 USocial

  • Acts as a hub for user management.
  • Facilitates user registration, with options for standard or business status.
  • Allows user removal from the system.
  • Provides user retrieval functionality via ID.
  • Offers a display of all users, primarily for debugging purposes.

πŸ‘€ User

  • Users can create posts with text and multimedia content.
  • Provides capabilities to add or remove friends.
  • Enables users to view posts from their friends.
  • Facilitates the sending and receiving of messages.
  • Business users get the added perk of broadcasting messages to multiple users simultaneously.

πŸ“ Media

  • An abstract base class for various media types.
  • Currently supports Photo πŸ“Έ, Audio 🎡, and Video πŸŽ₯ subclasses.
  • Each media type has a unique method to showcase its content.

πŸ“Œ Post

  • Symbolizes user-generated content that may be a blend of text and media.

πŸ’¬ Message

  • Denotes the exchange of messages between users, be it text or media.

βš™οΈ Compilation and Usage

New Qt GUI

The project now includes a new Qt GUI, which is the recommended way to interact with the system. To launch the GUI, please make sure you have Qt Creator installed, then open the project file project.pro and run the project.


A Makefile is included to streamline the build process. To set the system in motion, adhere to the following sequence:

make clean

πŸŽ₯ Sample Execution

You can run an example test py pressing Run Test from the Qt GUI.

Alt text Alt text

A new window will be promped when the test is done. You can see the results of the test in the console Real-time.

A preconfigured main function offers a walkthrough of the USocial system's multifaceted features. This includes registering users, crafting posts, forging friendships, initiating message exchanges, and simulating potential error scenarios (e.g., repetitive friend additions or sending messages to non-friends).

πŸ‘₯ Contributing

Contributions are heartily welcomed. Start by forking the project, instate your modifications, and initiate a pull request.

πŸ“œ License

USocial is distributed under the MIT License.

πŸ“¬ Contact

Feedback, suggestions, or inquiries? Please direct them to email.

About

A C++ coursework project on social media system simulation, featured in my professional portfolio.

License:MIT License


Languages

Language:C++ 55.2%Language:Makefile 44.1%Language:QMake 0.7%