GithubHelp home page GithubHelp logo

marvel's Introduction

Marvel

Marvel is a toy project that leverages the Marvel API, enabling you to save character images, access related websites, and explore character-related information, including comics, stories, events, and series. You can also browse a comprehensive list of Marvel characters and explore their profiles.

Requirement

  • iOS 16
  • Xcode 14
  • Swift 5

Quick Start

  1. Go to Marvel Developer Portal and obtain an API key.
  2. Create a SecretInfo.plist file within your project.
  3. Add the following code to the SecretInfo.plist file and insert your issued Marvel API keys:
<dict>
    <key>Marvel Comics API Information</key>
    <dict>
        <key>Private Key</key>
        <string>{PRIVATE_KEY}</string>
        <key>Public Key</key>
        <string>{PUBLIC_KEY}</string>
    </dict>
</dict>

Directory Structure

└──📂 Source
    ├──📂 Application
    ├──📂 Presentation
    ├──📂 Domain
    ├──📂 Data
    └──📂 Utility
└──📂 Resource

Architecture Pattern

flowchart TD
    A(UI Layer) --> B(Domain Layer)
    B --> C(Data Layer)

UI Layer

UI Layer is implemented using ReactorKit. This ensures that the UI components are structured and designed in a uniform manner, following the constraints of the View and Reactor, resulting in a cohesive and well-organized codebase.

Domain Layer

The Domain Layer serves as an intermediary between the UI and Data Layers, simplifying interactions and promoting reusability. While this layer is optional, it can provide a structured approach to handling business logic and data processing, contributing to a more maintainable and scalable codebase.

Data Layer

The Data Layer is designed as a repository that can accommodate from zero to multiple data sources, each responsible for different types of data processed within the app. To maintain a structured approach, we create separate storage classes for each data type, ensuring that changes to data are centralized. Each data source class should be dedicated to a single data source, such as files, network sources, or local databases, adhering to the principle of using only one data source per class.

marvel's People

Contributors

statios avatar

Watchers

 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.