Basic app using Marvel API made with VIP pattern
Marvel App
Basic app using Marvel API made with VIP pattern
Getting started
Prerequisites
- Xcode 12 or later
- CocoaPods
- An iOS device or Simulator that is running on iOS 13.0 or later.
Install Pods
- Clone the app repository.
- Open Terminal, navigate to the
MarvelApp
folder where thePodfile
is located, and run thepod install
command.
Modify the project configurations
If you want to use your own keypair, add yours in Constants.Marvel
struct. The file s in marvelapp/Source/Common/Constants
Run the sample code
Just press play
App organization
There are 3 main folders
Delegate
It contains the AppDelegate
and SceneDelegate
files
Resources
It contains the Assets
folder, the main Info
file and the storyboards
Source
It contains the app code divided in 4 folders
Repositories
It contains the file CharacterRepository
that defines the protocol to make the network calls and an implementation of a class that implements that protocol
Common
It contains widgets (like custom views and cells), app entities, class extensions, an MD5 wrapper and an auth manager for the Marvel API
Managers
Contains a connectivity manager exposed through a main provider
Scenes
Contains the CharacterList and CharDetail scenes following the VIP pattern