目录
目录README.md

CI Xcode Swift 5.7.2 iOS

ShoppingCart 🛒

The components are built focus on the reusability by multiple projects. The modularization was composed by:

  • CartEngine: All the operations related to a cart, such add, remove, total price, with a generic API that can be used in any project.
  • NetworkEngine: Simple HTTPClient that can be used in any project. Provides a contract and a default implementation using URLSession.
  • Marketplace: The product and the cart feature, can be run in isolation of the main project.
  • CartApp: The main module, that create features and inject the dependencies.
Demo

Getting Started

  1. Install Xcode.
  2. Clone this repository.
  3. Open ShoppingCart.xcworkspace:
    open ShoppingCart.xcworkspace

    Xcode will do all the hard work for you 👨‍💻

Features

  • Load products
  • Add products to the cart
  • Remove products from the cart
  • Increase and decrease products from the cart
  • Clear the cart

Non-functional features

  • Clean Architecture
  • SOLID Principles
  • Unit Tests using TDD
  • Modularity using Swift Package
  • Design Patterns (Strategy, Adapter)
  • SwiftUI
  • HTTP requests
  • CI using GitHub Actions
关于
158.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号