Git Product home page Git Product logo

mymoviedb's Introduction

[GitHub-Repository] (https://github.com/mcany/MYMovieDB)

 MYMovieDB

Features

  • Minimum deployment target is set to iOS 10.0

  • Light and dark theme is supported.

  • Async image loading is supported.

  • Keyword search is supported by throttling.

Scenes

Movie List

  • Fetches and lists popular movies from most recent to least.

  • Only the first page of popular movies is patched. (Pagination is in progress).

  • Search bar searches the given keyword and finds possible movies, tv or person matches in a sectioned view.

  • The selection of each list will navigate to the related detail page. (TV shows detail page is not implemented).

Movie Detail

  • Movie's poster, backdrop, title, rating, overview, and cast list are shown

  • Selection of a cast will navigate to the person detail page

Person Detail

  • Person's poster, name, biography, birthplace, birthday, and department info are shown

Code Architecture

  • MVVM architecture is used for making modular, easy to maintain, reusability, and testing purposes.

  • Protocol-based programming is used whenever possible to be able to mock data in unit testing and using the same VC with different MVs if needed.

  • In list view scene network layer models and presentation layer models are separated.

  • Navigation is supported by 'Routers'. This way VCs do not where to go and the creation of the next VC is given to the router for low coupling. Routers decide with given information about where to go when needed.

  • Reactive approach is used with State Change Handlers. This way VCs observe view state and reacts to any changes. This approach is used for making dummy VCs and leverages the benefits of the Observer/Observable pattern. VMs do not call directly VCs only updates the state and VCs behave according to any changes without knowing who changed or when is changed.

  • Categories are added when needed instead of subclasses in order to make the new features available without changing the base classes. Subclassing is a bigger footprint in the code but used when the extension is not enough.

  • No Storyboard is used. Views and constraints are created programmatically. Programmatic creation benefits at merge conflicts, reusability, easy to code review, to read, and clear. Storyboards may take a long time render when it is cluttered. Since using segues does not allow custom VC creation, dependency injection can not be supported. For making VC less crowded and taking advantage of the visual designing Xib files can be used alongside programming.

Network

  • For parsing swift codable protocol is used.

  • To make the app lightweight and be independent of the frameworks, a URL session is used.

Testing

  • Example of unit tests is added by using the power of the architecture.

Missing Features - Improvements

  • UI Tests

  • Pagination in the list view

  • Error view and retry mechanism

  • Localization

  • Hide empty labels in detail views

  • Videos support

  • VC creation factory

mymoviedb's People

Contributors

mcany avatar

Stargazers

Ata Etgi avatar Mehmet Koca avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.