Giter VIP home page Giter VIP logo

foodstore's Introduction

How to run the app

Open FoodStore/FoodStore.xcworkspace, and Run (Cmd + R).

Project structures

Messenger
├── Resources
├── Models
├── Modules
├── Core
│  └── Image
│  └── Persistence
│  └── Helper
|  └── Extensions
|  └── Networking
│  └── BaseVIPER
|     └── Presenter
|     └── Router
|     └── View

MessengerTests

VIPER

VIPER is a very clean architecture. It isolates each module from others. So changing or fixing bugs are very easy as you only have to update a specific module. Also for having modular approach VIPER creates a very good environment for unit testing.

Other Key Advantages of VIPER Architecture:
  • Good for large teams.
  • Makes it scalable. Enable developers to simultaneously work on it as seamlessly as possible.
  • Makes it easy to add new features.
  • Makes it easy to write automated tests since your UI logic is separated from the business logic.
  • Makes it easier to track issues via crash reports due to the Single Responsibility Principle.
  • Makes the source code cleaner, more compact, and reusable.
  • Reduces the number of conflicts within the development team.
  • Applies SOLID principles.
  • Reduces the number of merge conflicts.

VIPER Template

I created a VIPER Xcode template to make the work easier, reduce time for create new files and repeate the same code per module.

To create new module: Create new Group as your module name ---> Add new File --> Scroll down to select VIPER template --> type your module name.

BaseNetworking

A very lightweight URLSession wrapper to work with REST APIs. Easy to use and flexible with diffirent endpoints, methods.

networkClient.fetch(endPoint: ListUsersEndpoint.fetchListUser(lastId: lastId), type: [User].self) { (result) in
            switch result {
            case .success(let users):
                print("Fetched list users: \(users)")
            case .failure(let error):
                print("Error: \(error)")
            }
        }

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.