Skip to content

Naveen-C-Ramachandrappa/MyPortfolio

Repository files navigation

MyPortfolio

Displays list of stocks owned by the individual, current price and stock units owned. Project also has unit tests written for the view model. Have leveraged RxSwift framework to set up data bindings and implement MVVM architecture. Have used Resolver dependency injection framework to inject dependencies.

If I were to use the dictionary data from the api response and not use any codable type model classes, I would pass the dictionary response from the api request class as is to the view model and then let view model take care of extracting the data it needs and update UI. The job of ApiRequest class is just to make call and fetch data and not filter data. I can also think of a DataService between view model and APIRequest class that can aggregate data if required and then send the aggregated data to the view model so the logic to aggregate data by making additional service call can be kept in Data service and data service sends the aggregated data back to view model. So, things like downloading image from url can also be taken care by data service which is an additional call on the top of the initial service call.

Steps to get this project running:

  1. Clone the repo
  2. Launch Terminal, navigate to the path where the project is cloned
  3. Run "pod install" command
  4. That woud install the pods
  5. Tap on run button to run the project.
StocksVideo.mov

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published