Giter Site home page Giter Site logo

vinayjn / stocks-ios Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 96 KB

Stocks app, this repository also acts as a scratchpad for the implementation of things I learn.

Swift 98.15% Makefile 1.85%
viper-architecture swift-protobuf danger swift-info stocks protocol-buffers cocoapods

stocks-ios's Introduction

Stocks

Build codecov

Stocks is an iOS app written in Swift using the VIPER Architecture. The idea behind making this app was to keep API contracts(models) in sync with the backend and avoid hassles of writing of same type of code in both iOS and Android. To achieve that I have created a separate repo for the models used in the iOS app which is addes as Swift Package dependency. I am running a local pipeline to generate models using protoc with plugins for Swift and Golang. Check the Makefile to know more about it. After generating the models locally these models are then pushed to the stock-contracts-ios. I haven't automated the new release for this repo yet.

Build Environment

  • Xcode 11

  • Swift 5.1

  • Cocoapods 1.7.5

  • Swift Protobuf

  • Protoc

Setup

Instead of using JSON files for API responses I have used Protocol Buffers. Protocol buffers are smaller in size and very simple to write. You can find the .proto files in the protos/models directory.

Install Cocoapods

brew install cocoapods

Install Swift Protobuf

brew install swift-protobuf

This will install protoc compiler and Swift code generator plugin.

If you want to run this app and test the functionality, you also need to setup a local server from this repo.

stocks-ios's People

Contributors

vinayjn 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.