jlainog / SpotifyExampleApp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SpotifyExampleApp

This Code is an Example using Clean Architecture

Description

This is an Spotify Example app, which fetches the Artists and Albums using the Spotify API. The UseCases are represented by protocols, this allow to have the implementations away from the interfaces so the chossed implementation can be injected applying the Dependency Inversion Principle. There is a Controller per UseCase that use it to get the data and handle the states to be presented in the UI.

Using this approach each layer can be tested with out dependencies to each other and incite the Single responsibility principle. Use Cases can be mocked and Controllers states can be tested using this mocks.

Attribution

This product uses the Spotify Web API.

License

MIT License

About


Languages

Language:Swift 99.6%Language:Ruby 0.4%