{"id":51062399,"url":"https://github.com/sebsop/guitar-practice-log","last_synced_at":"2026-06-23T03:34:06.584Z","repository":{"id":319659602,"uuid":"1079241518","full_name":"sebsop/guitar-practice-log","owner":"sebsop","description":"Guitar Practice Log Mobile App with Kotlin Multiplatform and Android, offline support, and real-time sync via REST/WebSockets with a Spring Boot + JPA server.","archived":false,"fork":false,"pushed_at":"2026-04-16T08:48:38.000Z","size":550,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-23T03:34:05.276Z","etag":null,"topics":["jpa-hibernate","kotlin","kotlin-multiplatform","roomdb","spring-boot","websockets","workmanager"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebsop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-19T12:14:48.000Z","updated_at":"2026-04-16T08:48:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"f03b4f71-563d-43a1-a157-33ade53ced8f","html_url":"https://github.com/sebsop/guitar-practice-log","commit_stats":null,"previous_names":["dosqas/guitar-practice-log","sebsop/guitar-practice-log"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sebsop/guitar-practice-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebsop%2Fguitar-practice-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebsop%2Fguitar-practice-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebsop%2Fguitar-practice-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebsop%2Fguitar-practice-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebsop","download_url":"https://codeload.github.com/sebsop/guitar-practice-log/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebsop%2Fguitar-practice-log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34674702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["jpa-hibernate","kotlin","kotlin-multiplatform","roomdb","spring-boot","websockets","workmanager"],"created_at":"2026-06-23T03:34:05.759Z","updated_at":"2026-06-23T03:34:06.578Z","avatar_url":"https://github.com/sebsop.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎸 Guitar Practice Log - Mobile App\n\nA project built with **Kotlin Multiplatform** for cross-platform UI and **native Android/Kotlin** for the full app, paired with a **Spring Boot + JPA + Hibernate** server.  \nIt tracks guitar practice sessions with full offline support and automatic synchronization to the custom REST server.\n\n## 📖 Assignment / Course Requirements\n\nThe project follows the requirements laid out by the course instructor; see full lab plan [here](https://www.cs.ubbcluj.ro/~dan/ma/labPlan.html)\n\n---\n\n## 📸 App Mockups - Practice List View + Edit Form (Online/Offline)\n\n\u003cp float=\"left\"\u003e\n  \u003cimg src=\"demo/practice_list_view.png\" width=\"200\" /\u003e\n  \u003cimg src=\"demo/edit_form.png\" width=\"200\" /\u003e\n  \u003cimg src=\"demo/edit_form_offline.png\" width=\"200\" /\u003e\n\u003c/p\u003e\n\n---\n\n## 📌 Overview\n\nThe **Guitar Practice Log App** is a simple, intuitive tool for guitar players who want to keep track of their practice sessions. Each session includes:\n\n* Song title\n* Date\n* Duration\n* Focus area (e.g., rhythm, chords, solo)\n* Optional notes\n\nThe app works **fully offline** and automatically synchronizes all changes with a remote server when the device reconnects.\n\n---\n\n## 🧩 Core Features\n\n### ✔ CRUD for Practice Sessions\n\nEach **PracticeSession** contains:\n\n| Field              | Type    | Description                                 |\n| ------------------ | ------- | ------------------------------------------- |\n| ID                 | Integer | Unique identifier (server/local DB managed) |\n| Song Title         | Text    | Song or exercise practiced                  |\n| Date               | Date    | Practice day                                |\n| Duration (minutes) | Number  | Session length                              |\n| Focus Area         | Text    | Main skill trained                          |\n| Notes              | Text    | Optional notes                              |\n\n### CRUD Behavior\n\n* **Create:** Add a new practice session using a dedicated form with full field labels and validation.\n* **Read:** All session details are displayed directly in the list.\n* **Update:** Tapping a session opens the edit form, where all fields are pre-populated and can be modified.\n* **Delete:** Remove a session using a confirmation dialog; the item is properly identified by its ID.\n\n---\n\n## 📴 Full Offline Support\n\nAll operations work offline and survive app restarts:\n\n| Operation | Offline Behavior                                                                 |\n| --------- | --------------------------------------------------------------------------------- |\n| Create    | User is notified that the server is offline; the new session is saved locally and queued for sync. |\n| Read      | Local cached data is displayed, along with a notice that the server is offline.   |\n| Update    | User is notified that the server is offline; changes are saved locally and queued as “Pending Update.” |\n| Delete    | User is notified that the server is offline; the item is removed locally and queued as “Pending Deletion.” |\n\n\n### 🔄 Automatic Sync on Reconnection\n\nWhen connection returns:\n\n* All pending creates/updates/deletes sync to the server\n* Conflicts are detected \u0026 resolved directly\n* Local DB is refreshed to match server state\n\n### 🎯 Bonus Feature Implemented\n\n**Advanced Background Sync using WorkManager**\n\n* Ensures robust syncing even after app closures or long offline periods\n* Handles retries \u0026 linear backoff\n\n---\n\n## 🌐 Server Integration\n\nThe server is **implemented manually** using **Spring Boot**, **JPA**, and **Hibernate** (no Firebase, no serverless platforms).\nCommunication uses **REST + WebSockets**:\n\n* **REST** -\u003e main CRUD operations\n* **WebSocket** -\u003e real-time updates pushed to the Android client\n* Both the client and server include **full debug logging**\n\n---\n\n## 📁 Project Structure\n\n```\nroot\n├── idea/                          # App concept and domain documentation\n├── non-native/                    # Kotlin Multiplatform UI-only version\n│   └── (KMP UI CRUD with list, create, update, delete)\n├── native/                        # Full Android implementation\n│   ├── frontend/                  # Android client\n│   │   • Local DB (Room)\n│   │   • Repository layer\n│   │   • Offline caching\n│   │   • WorkManager background sync\n│   │   • REST client + WebSocket client\n│   └── backend/                   # Spring Boot server (REST + WebSockets, JPA + Hibernate)\n└── README.md                      # Project documentation\n```\n\n---\n\n## 🏆 Evaluation Criteria (All Achieved at “Excellent”)\n\n\u003e **Project evolution note:**\n\u003e\n\u003e * The **non-native Kotlin Multiplatform module** includes **only the UI-only version** (list, create, update, delete).\n\u003e * The **native Android module** evolved through **three complete stages**:\n\u003e   **UI-only → Local Database → Full Server Integration (REST + WebSockets + Offline Sync)**.\n\n---\n\n### 1. **Kotlin Multiplatform – UI-only Version**\n\n* ✔ Recycler/list view with ViewModel + repository\n* ✔ No full list/adapter rebuilds\n* ✔ Dedicated screens for create \u0026 update\n* ✔ Field labels, validation, correct pre-population\n* ✔ Delete with confirmation\n\n---\n\n### 2. **Native Android – Local Database Version**\n\n* ✔ Values retrieved once, observed via LiveData/Flow\n* ✔ Clean repository pattern + background coroutines\n* ✔ DB-managed IDs (user never sees internal ID)\n* ✔ Update reuses the same DB entity (no delete-and-recreate)\n* ✔ Persistence errors shown to user and logged\n* ✔ Delete uses only the item ID\n* ✔ All DB operations fully logged\n\n---\n\n### 3. **Native Android – Server-Connected Version**\n\n* ✔ Fully custom server (Spring Boot + JPA + Hibernate)\n* ✔ REST for CRUD + WebSockets for live updates\n* ✔ Complete offline support for Create/Read/Update/Delete\n* ✔ Data retrieved once and reused; real-time push updates\n* ✔ Create/Update/Delete marshaled cleanly with correct IDs\n* ✔ All server operations executed on background coroutines\n* ✔ Friendly validation \u0026 error UI (no raw exceptions shown)\n* ✔ Full debug logging on both client and server\n* ✔ Advanced offline-to-online sync using WorkManager\n\n---\n\n## ✅ Summary Table\n\n| Feature        | Online    | Offline              |\n| -------------- | --------- | -------------------- |\n| View Sessions  | ✔         | ✔ (cached)           |\n| Add Session    | ✔         | ✔ (pending sync)     |\n| Update Session | ✔         | ✔ (pending update)   |\n| Delete Session | ✔         | ✔ (pending deletion) |\n| Auto Sync      | Automatic | On reconnection      |\n\n---\n\n## 📄 License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\n## 💡 Contact\n\nQuestions, feedback, or ideas? Reach out anytime at [sebastian.soptelea@proton.me](mailto:sebastian.soptelea@proton.me).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebsop%2Fguitar-practice-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebsop%2Fguitar-practice-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebsop%2Fguitar-practice-log/lists"}