Coder Social home page Coder Social logo

technologytest's Introduction

Technology Assessment

This project is an iOS application that displays the most recent articles from the New York Times API. It follows the MVVM-C (Model-View-ViewModel-Coordinator) architecture and applies SOLID principles. The application is built with Swift and SwiftUI.

Technology Assessment

This iOS application displays the most recent articles from the New York Times API. It follows the MVVM-C (Model-View-ViewModel-Coordinator) architecture, adheres to SOLID principles, and is built with Swift and SwiftUI.

Project Overview

The project follows the MVVM-C architecture, with responsibilities divided as follows:

  • Model: Represents the data structures and entities used in the application.
  • View: Displays the user interface and reacts to user interactions.
  • ViewModel: Acts as an intermediary between the View and the Model, providing data and handling business logic.
  • Coordinator: Handles navigation and flow control in the application.

The Repository design pattern is implemented to retrieve data from the remote database using the New York Times APIs.

Tech Stack

  • Swift
  • SwiftUI

Dependencies

The project relies on the following dependencies:

  • Moya: A network abstraction layer built on top of Alamofire.
  • AlamofireLogger: A logging framework for Alamofire requests.

Installation

To install and set up the project, follow these steps:

  1. Clone the repository:

    git clone <repository_url>
    cd TechnologyAssessment
    
  2. Install iOS dependecy: Brefore open the project you have to nake sure you install Ruby and Cocoapods for ios dependencies

    brew install ruby
    brew install cocoapods
  3. Install project dependencies using CocoaPods:

    pod install
    
  4. Open the project: Open the generated TechnologyAssessment.xcworkspace file in Xcode.

  5. Run the project: Press Cmd+R or select Product > Run to build and run the project on a simulator

Unit testing

The project includes unit tests that cover the repository and view model components. To run the tests, follow these steps:

In Xcode, open the TechnologyAssessment.xcworkspace file.

Select the test target you want to run, such as TechnologyAssessmentTests.

Press Cmd+U or go to Product > Test to run the tests

technologytest's People

Contributors

islammamo avatar islamshazly 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.