Git Product home page Git Product logo

drinking-app's Introduction

Drink Smart

Provides users with a simple way to track their BAC and state of intoxication, as well as an intuitive way of messaging a predetermined emergency contact when a certain state of intoxication is reached. At the heart of the application is the BAC calculation. As with all BAC calculations, it is only accurate if you space your drinks evenly throughout the evening. For this reason, we advise against using this application for anything other than curiosity. We do not endorse underage drinking, nor drinking to excess. We claim no responsibility for user's actions while using this application.

Architecture

In this repository you'll find the iOS application and all resources it requires, including code from two third party repositories that provide us with the round progress view (https://github.com/Ceroce/CERoundProgressView) in the Main View Controller, and radio buttons throughout (https://github.com/onegray/RadioButton-ios). The application follows a model-view-controller pattern, where the user and night classes make up the model, the view is contained in the storyboard, and the controller is implemented as UIViewControllers. For persistent storage, the application makes use of NSUserDefaults. See the image below for how individual UIViewControllers interact with the data objects. For a more detailed description of individual elements and interactions, see comments in code.

Unidirectional arrows represent read only interactions, bidirectional arrows represent read + write interactions. Whenever the user object is written to, the change is reflected in NSUserDefaults.

Requirements for Running and Building

The iOS application was developed using xCode 5, targeting iOS 7.

It makes use of several of Apple's frameworks and libraries, all listed under "Linked Frameworks and Libraries".

Known Bugs

Navigation bar image for messaging view controller does not comply with the rest of the app

HaLeAlEi Team

Thank you for taking the time to check out our work. Feel free to contribute as you please.

Haroon, Leo, Alexandra, Eivind

Macalester College, May 2014

drinking-app's People

Contributors

eibakke avatar abassen avatar haroon477 avatar

Watchers

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