{"id":25174745,"url":"https://github.com/swe-amr-abdelaziz/exam-simulator-cpp","last_synced_at":"2026-05-10T03:16:29.823Z","repository":{"id":275335392,"uuid":"925766061","full_name":"swe-amr-abdelaziz/exam-simulator-cpp","owner":"swe-amr-abdelaziz","description":"A modern C++ console-based exam simulator with OOP, TDD, CI/CD, and Docker support.","archived":false,"fork":false,"pushed_at":"2025-02-09T07:40:34.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T08:19:41.632Z","etag":null,"topics":["builder-pattern","clang-format","continuous-integration","cplusplus","cpp","data-structures-and-algorithms","design-patterns","docker","dsa","github-actions","makefile","modern-cpp","object-oriented-programming","oop","standard-library","tdd","test-driven-development"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swe-amr-abdelaziz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-01T17:39:29.000Z","updated_at":"2025-02-09T07:40:36.000Z","dependencies_parsed_at":"2025-02-01T19:29:48.343Z","dependency_job_id":"7f9db0cd-ceaf-4c36-a708-5faa667714b0","html_url":"https://github.com/swe-amr-abdelaziz/exam-simulator-cpp","commit_stats":null,"previous_names":["swe-amr-abdelaziz/exam-simulator-cpp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swe-amr-abdelaziz%2Fexam-simulator-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swe-amr-abdelaziz%2Fexam-simulator-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swe-amr-abdelaziz%2Fexam-simulator-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swe-amr-abdelaziz%2Fexam-simulator-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swe-amr-abdelaziz","download_url":"https://codeload.github.com/swe-amr-abdelaziz/exam-simulator-cpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247099680,"owners_count":20883440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["builder-pattern","clang-format","continuous-integration","cplusplus","cpp","data-structures-and-algorithms","design-patterns","docker","dsa","github-actions","makefile","modern-cpp","object-oriented-programming","oop","standard-library","tdd","test-driven-development"],"created_at":"2025-02-09T12:20:38.242Z","updated_at":"2026-05-10T03:16:29.765Z","avatar_url":"https://github.com/swe-amr-abdelaziz.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exam Simulator in C++\n\nA **console-based exam simulator** written in **modern C++**, designed with best practices in mind.\nIt follows **object-oriented principles**, applies **design patterns**, and leverages **test-driven development (TDD)** to ensure high code quality.\n\n---\n\n## 🚀 Features \u0026 Best Practices\n\n### ✅ **Software Design Principles**\n\n- **Object-Oriented Programming (OOP)**: Utilizes **encapsulation, inheritance, polymorphism, and abstraction**.\n- **Dependency Injection**: Enhances modularity and testability by decoupling components and providing dependencies externally.\n- **Modularized Design**: Code is well-structured into **separate modules** for maintainability.\n- **Design Patterns**:\n  - **Builder Pattern**: Used to facilitate **object creation** for unit testing.\n\n### 🛠 **Modern C++ Features**\n\n- **Smart Pointers**: Uses `std::unique_ptr` and `std::shared_ptr` for **automatic memory management**.\n- **Move Semantics**: Improves performance by **avoiding unnecessary copies**.\n- **Standard Library Usage**: Leverages **STL containers and algorithms** (`std::vector`, `std::optional`, etc.).\n- **Lambda Expressions**: Used for cleaner, more concise code in various places.\n\n### 🔍 **Code Quality \u0026 Static Analysis**\n\n- **Compiler Warnings**: Uses robust configuration for maximum warning levels and strict standard conformance.\n- **Code Formatting**: Uses `clang-format` for consistent styling.\n- **Static Analysis**: Runs `cppcheck` to detect potential issues early.\n- **File \u0026 Folder Naming Convention**: Ensures a consistent naming convention across the project.\n\n### 📦 **Development \u0026 Automation**\n\n- **Test-Driven Development (TDD)**: Implements **unit tests** to verify correctness.\n- **CMake**: Simplifies **compilation, running, testing, and memory leak checks**.\n- **Shell Scripts**: Automates common tasks such as **code formatting, and generating test coverage reports**.\n\n---\n\n## 🛠 **CI/CD Pipeline**\n\nThis project employs **GitHub Actions** for automated **Continuous Integration (CI)**.\n\n### 📜 **CI Jobs Workflow**\n\n- **Check Files/Folders Naming Conventions**\n- **Check Code Formatting**\n- **Static Analysis with cppcheck and Upload cppcheck.xml**\n- **Run Unit Tests**\n- **Run Memory Leak Checks**\n- **Generate Code Coverage and Upload Coverage Report**\n\n### 🐳 **Docker Integration**\n\n- The **Dockerfile** is included for demonstration.\n- The CI pipeline uses a **pre-built image from Docker Hub** (`amrswe/cpp-utils`) to **optimize build times**.\n\n---\n\n## 📌 **How to Build \u0026 Run**\n\n### **Build the Project**\n\n```sh\nmake\n```\n\n### **Run the Project**\n\n```sh\nmake run\n```\n\n### **Run Unit Tests**\n\n```sh\nmake test\n```\n\n### **Print Help Menu**\n\n```sh\nmake help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswe-amr-abdelaziz%2Fexam-simulator-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswe-amr-abdelaziz%2Fexam-simulator-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswe-amr-abdelaziz%2Fexam-simulator-cpp/lists"}