{"id":26058963,"url":"https://github.com/ditto-examples/learning-swift-introduction","last_synced_at":"2025-03-08T12:47:38.180Z","repository":{"id":279698428,"uuid":"938206980","full_name":"ditto-examples/learning-swift-introduction","owner":"ditto-examples","description":"Demo Introduction to Swift Learning","archived":false,"fork":false,"pushed_at":"2025-03-06T15:01:51.000Z","size":9011,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-06T16:21:42.911Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/ditto-examples.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-24T15:35:06.000Z","updated_at":"2025-03-06T15:01:56.000Z","dependencies_parsed_at":"2025-02-26T23:43:41.534Z","dependency_job_id":null,"html_url":"https://github.com/ditto-examples/learning-swift-introduction","commit_stats":null,"previous_names":["ditto-examples/learning-swift-introduction"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ditto-examples%2Flearning-swift-introduction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ditto-examples%2Flearning-swift-introduction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ditto-examples%2Flearning-swift-introduction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ditto-examples%2Flearning-swift-introduction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ditto-examples","download_url":"https://codeload.github.com/ditto-examples/learning-swift-introduction/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242552860,"owners_count":20148253,"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":[],"created_at":"2025-03-08T12:47:37.532Z","updated_at":"2025-03-08T12:47:38.164Z","avatar_url":"https://github.com/ditto-examples.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to Ditto University! 🚀\n\n\u003e [!NOTE] \n\u003eThis is a proof of concept for the Ditto iOS Introduction to Ditto Learning Module.  It is a simple to-do list app that uses Ditto to store and sync the task data.  This is not production ready code and is only meant to be used as a reference for the POC of Ditto University learning modules. \n\n## Prerequisites\n\nYou will need the following to complete this learning module:\n\n- [Xcode](https://developer.apple.com/xcode/) 15 or greater\n- Git installed on your machine \n- A Ditto Portal account with an app created (directions provided below)\n- Ditto SDK installed as a package dependency using Swift Package Manager (already done for you)\n\n\n### The Big Peer and Cloud Storage\n\nThe `Big Peer` is a trusted cloud deployment of Ditto's sync engine and associated services that enables advanced platform capabilities. Every Ditto Portal account includes a Big Peer instance that serves as a central hub for data storage and synchronization.\n\nIn our Tasks app, data is stored in a collection called `tasks` within the Big Peer instance. Each task is stored as a JSON document in this collection. The Ditto SDK provides a unified API for:\n- Reading and writing data to the Big Peer\n- Synchronizing with other devices (called `Small Peers`) running the same app\n- Managing offline data persistence\n- Handling real-time updates\n\nThis architecture enables seamless data synchronization between:\n- Your device and the cloud (Big Peer)\n- Your device and other users' devices (Small Peers)\n- The cloud and all connected devices\n\n\n\n## The Scenario\n\nYou've just joined a development team for the company Acmezon that recently demonstrated a task management app to company leadership. The app demo was a hit - the UI was polished, the interactions were smooth, and leadership was ready to ship it immediately. There was just one catch: the entire app was running on mock data.\n\nThe prototype lacks several critical features modern users expect:\n- No offline support - data disappears when the app closes\n- No data persistence - changes aren't saved between sessions\n- No synchronization - changes don't sync between devices\n- No real-time updates - users don't see each other's changes\n\nRather than rebuilding from scratch, the team has decided to integrate Ditto to add these essential features. Your mission is to transform this prototype into a production-ready application with robust offline-first capabilities and peer-to-peer synchronization, all while maintaining the existing user experience.\n\n## Learning Objectives\n\nThrough this module, you'll learn how to:\n1. Replace mock data with a real Ditto database\n2. Implement offline-first data persistence\n3. Enable real-time updates across devices\n\n\n## Ready to Begin?\n\nHead to [Lesson 1 - Your First Ditto App](lesson-1/README.md) to get started! 🚀\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fditto-examples%2Flearning-swift-introduction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fditto-examples%2Flearning-swift-introduction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fditto-examples%2Flearning-swift-introduction/lists"}