SanFelipeStudios / RomeTwo

Second Project, focused on practical design
0 stars 0 forks source link

Research Curator Data Models #11

Closed nicholasri closed 1 year ago

nicholasri commented 1 year ago

Objective

As an iOS Engineer, I want create our first view, the Curator View. This view should confirm to the details provided in: https://github.com/SanFelipeStudios/RomeTwo/issues/6.

Because this is our very first view, we will have dependencies on Data Models that do not currently exist in our product. Research and implement the necessary changes to load these models via CoreData.

Hades

nicholasri commented 1 year ago

Research and Findings

nicholasri commented 1 year ago

Additional Findings

Upon further research, I have decided to go with MongoDB Atlas instead of CoreData. From my understanding, CoreData is NOT a database and is used only for local persistence. MongoDB Atlas is a Database as a Service that allows us to sync our MongoDB database in real-time to our mobile applications. Site: https://cloud.mongodb.com

I am also using Studio3T to access the data in the database: https://studio3t.com/ . You can get the URI by going to MongoDB Atlas -> SanFelipeStudios -> RomeTwo -> Data Services -> Connect.

I have sent an Organization (SanFelipeStudios) invite to dusharmrome@gmail.com for MongoDB Atlas and create the project RomeTwo.

The code I will be pushing to our project will be from the Realm SwiftUI tutorial: https://www.mongodb.com/docs/realm/sdk/swift/swiftui-tutorial/#std-label-ios-swiftui-quick-start

Follow up

Following this story a few things need to happen:

Things to consider

While I have defined an object as such

I believe Library: [Game] can be Library: [Game.id], same for Payments and all other variables referencing other objects. The example I am going with is similar to ItemGroup in the Realm Tutorial