App Maintenance Documentation ==== ### Install Instructions * Requirements * XCode version 12.2 or higher * Target of iOS 9.0 or higher, macOS 10.9 or higher, tvOS 9.0 or higher, or watchOS 2.0 or higher * If using Swift Package Manager, target of iOS 11+ or macOS 10.10+ is required * [MongoDB Realm's Swift SDK](https://docs.mongodb.com/realm/sdk/swift/install/) * Access to MongoDB Database * [CocoaPods](https://guides.cocoapods.org/using/getting-started.html) to handle MongoDB packages * Steps: 1. Clone the source code from the `Master` branch. 2. Once you have installed CocoaPods, cd into the cloned directory and run `pod install`. 3. Open the `Stork.cxworkspace` file in Xcode. There, you can modify any of the code or run it using the `CMD + R` shortcut. ### Passcode to Access the Application * 147369 ### Ways to Update Non-programming Components of the App * [MongoDB Atlas Full Documentation](https://docs.atlas.mongodb.com/) * [Adding new collections to the database](https://docs.mongodb.com/realm/schemas/enforce-a-schema/) * Log-in to MongoDB * Access needs to be granted by the maintainer of the database * Click `Atlas` tab and click on `StorkDatabase` * Navigate to `Collections` to see the list of all databases * Click `INSERT DOCUMENT` to add a new document to the selected database schema (most likely to be the `Patient` collection) * Click on existing documents to edit specific documents (patients) * [Updating/adding data schema](https://docs.mongodb.com/manual/tutorial/manage-users-and-roles/) * Navigate to `Realm` tab * Click on `StorkRealm` app * Under `DATA ACCESS`, click on `Schema` * Edit the schema directly * Add new schema by clicking the plus symbol * Granting Access to the Database * Navigate to `Atlas` tab * Under `SECURITY`, click on `Database Access` * Add new database users * Changing Passcode to the Application * Open the source code on XCode * Under `ViewControllers`, click on `LockScreenViewController` class * under `setupUI` function, manually edit the value of the code * [Granting access to Atlas Projects](https://docs.atlas.mongodb.com/organizations-projects/) ### Open Source Tools or Libraries Used * [Realm](https://github.com/realm/realm-cocoa/releases) (version 10.20.0) * [Realmswfit](https://cocoapods.org/pods/RealmSwift) (version 10.20.0)