nf17 / clicker-ios

An open-source iOS app for the Clicker app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clicker iOS Client

GitHub release Platform GitHub contributors Build Status

Clicker is one of the latest apps by Cornell AppDev, a project team at Cornell University. Clicker seeks to extend the functionality of iClickers on a web and mobile platform.

Installation

We use CocoaPods for our dependency manager. This should be installed before continuing.

Clone the project with git clone https://github.com/cuappdev/clicker-ios.git

After cloning the project, cd into the new directory and install dependencies with pod install.

Open the Clicker Xcode workspace, Clicker.xcworkspace, and enjoy!

Configuration

Create a /Secrets/Keys.plist plist file in the project directory with the following template:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>api-url</key>
	<string>http://example.server.com</string>
	<key>api-dev-url</key>
	<string>http://localhost:3000</string>
	<key>fabric-api-key</key>
	<string>FABRIC_API_KEY</string>
	<key>fabric-build-secret</key>
	<string>FABRIC_BUILD_SECRET</string>
</dict>
</plist>

Replace http://example.server.com under api-url with the host of your backend server (clone ours here!) and fill in Fabric-related strings for Fabric analytics integration.


Development

Models

User

Name Type Description
id String Unique identifier.
netID String Unique, university-generated identifier for each user.
name String User name (full name).

Course

Name Type Description
id String Unique identifier.
name String Course name.
term String Course term.

Lecture

Name Type Description
id String Unique identifier.
dateTime String Start date and time of the lecture.
questions [Question] Questions asked / to be asked during a lecture.

Question

Name Type Description
id String Unique identifier.
text String Question asked / to be asked.
type String Type of questions (FREE_RESPONSE, MULTIPLE_CHOICE, MULTIPLE_ANSWER)
options [Option] Choices presented / to be presented to answer a question.
answer String Correct answer to the question.

Option

Name Type Description
id String Unique identifier.
description String Choice presented / to be presented to a user.

Answer

Name Type Description
id String Unique identifier.
question String Question id.
answerer String User id.
type String Type of answer (SINGLE_RESPONSE, MULTIPLE_RESPONSE)
multipleResponse [String] Choices submitted by a user.
singleResponse String Choice submitted by a user.

Organization

Name Type Description
id String Unique identifier.
name String Organization name.

Views

Cells

  • LiveSessionTableViewCell: Used in the HomeViewController to display active lectures.
  • PastSessionTableViewCell: Used in the HomeViewController to display past lectures.
  • EmptyLiveSessionTableViewCell: Used in the HomeViewController as empty state for live sessions.
  • EmptyPastSessionTableViewCell: Used in the HomeViewController as empty state for past sessions.

Headers

  • LiveSessionHeader: Used in the HomeViewController as the section header for active lectures.
  • PastSessionHeader: Used in the HomeViewController as the section header for past lectures.

Controllers

  • HomeViewController: Used to display all active lectures and past lectures.
  • LiveSessionViewController: Used to answer questions in class. Includes question, answers, timer, submit, etc.
  • LoginViewController: Used to allow users (students and professors) to login.
  • TabBarController: Used to implement a tab bar navigation flow.

Other Classes

Quarks

We use Quarks for all of our protocol-oriented networking tasks. Neutron is an awesome framework that we use to streamline all networking tasks.

  • ClickerQuark
  • CourseQuark
  • LectureQuark
  • OrganizationQuark
  • QuestionsQuark
  • UserQuark

Sessions

Session

Name Type Description
id Int Unique identifier.
delegate SessionDelegate This session's delegate.

SessionDelegate: Protocol specifying session functionality (sessionConnected & sessionDisconnected).

External Services

Check out Issues to see what we are working on!

Back to top ^

About

An open-source iOS app for the Clicker app.


Languages

Language:Swift 99.9%Language:Ruby 0.1%