Git Product home page Git Product logo

el-debate-ios's Introduction

Build Status codecov codebeat badge

EL Debate

EL Debate is a platform by @elpassion to run an anonymous poll featuring yes-no-undecided question. This repository contains source code powering the iOS client.

Best practices

The project showcases a couple of good engineering practices:

  • Continuous Deployment to TestFlight,
  • Continuous Integration with Travis,
  • Dependency Injection,
  • Code quality measurements:
    • Code coverage,
    • Code quality by CODEBEAT.
  • Mock auto-generation with Sourcery,
  • Playground-driven view development (original idea),
  • Routing pattern (extended coordinator pattern),
  • UI interaction/snapshot testing.

ELDebate as a framework

Installation

๐Ÿ”ฅ This is only accessible to EL Passion organization members. ๐Ÿ”ฅ

EL Debate can be installed as a framework with Cocoapods. Add following contents to Podfile:

source '[email protected]:elpassion/podspecs.git'
source 'https://github.com/CocoaPods/Specs.git'

target 'ApplicationTargetToIntegrateELDebate' do
  pod 'ELDebate', '~> 1.0'
end

and run pod install command.

Running

To run EL Debate within your application use following code:

let navigationController = UINavigationController()
let debateRunner: DebateRunning = DebateRunner()

debateRunner.start(in: navigationController, applyingDebateStyle: true)

Keep in mind that:

  1. If debateRunner gets deallocated during runtime, the application will crash. Retain it as a field in your controller / coordinator.
  2. EL Debate uses custom navigation bar styling. The flag applyingDebateStyle: true is responsible for setting custom styling properties in navigation controller's bar.
  3. The navigationController has to be in your root view controller's hierarchy (obviously).

el-debate-ios's People

Contributors

koszcz avatar pawurb avatar sxcore avatar turekj 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.