Giter Site home page Giter Site logo

smitv / breathe-cal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simonmaude/breathe-cal

0.0 2.0 1.0 29.68 MB

Breathe California Allergen and Asthma Application

License: MIT License

Ruby 26.05% JavaScript 14.20% CoffeeScript 0.21% CSS 14.56% HTML 37.33% Gherkin 7.65%

breathe-cal's Introduction

README

<img src=“https://codeclimate.com/github/simonmaude/breathe-cal/badges/gpa.svg” /> <img src=“https://travis-ci.org/simonmaude/breathe-cal.svg?branch=master” alt=“Build Status” /> <img src=“https://codeclimate.com/github/simonmaude/breathe-cal/badges/coverage.svg” />

Pivotal Link

www.pivotaltracker.com/projects/2070837

Heroku Link

tranquil-wildwood-40360.herokuapp.com/

(previous semester: afternoon-temple-78844.herokuapp.com/)

Client Site

www.breathebayarea.org/

Our overall goal is to improve provide adequate information to individuals so that they may be better prepared in the case of a adverse lung health event.

Requested Features:

We would like the students to improve on an application that that has already been built by this program by making it more user friendly as well as general improvements. An input feature for specific allergens as well as a way to specify location within the bay area. Being able to input specific allergens is critical to helping individuals actively identify allergens that are harmful to them and prepare against them. Being able to chose a specific area is also critical to helping the individual using the application to prepare and avoid an allergy induced event.

(Note: The client did not have time for a meeting so this explanation of the client’s business needs was taken from the project listing description.)

Intallation

Because of some customizations that were made in the develpoment process, one first has to perform multiple steps in order to be able to run the included testing features

Make sure the following gems are added to the Gemfile:
    gem 'cucumber-rails', :require => false
    gem 'database_cleaner'
    gem 'rspec-rails'
    gem 'capybara'
    gem 'poltergeist'
    gem 'phantomjs', '1.9.8'
    gem 'selenium-webdriver'
    gem 'omniauth-google-oauth2'
    gem 'gmaps4rails'
    gem 'geocoder'

And then run bundle install command in the terminal.

In order to make Capybara use PhantomJS headless browser through the Poltergeist driver there is one change that needs to be done:

require 'capybara/poltergeist'

Capybara.javascript_driver = :poltergeist

Capybara.register_driver :poltergeist do |app|  
  Capybara::Poltergeist::Driver.new(app, js_error: false)
end  

Add the above to the test setup file.

Moreover, since our app integrate Google Map API, be sure to add your development website to Google Map API

console.developers.google.com/apis/credentials/oauthclient/140496364556-f0lvk46ni0jm0ke4k41nfnlp5mj7j8tl.apps.googleusercontent.com?project=breathe-149522&authuser=1

After that all that is left to do is run the migration file by typing in rake db:migrate in the terminal line

Now, in order to run any of the cucumber features we type cucumber features/*

Please feel free to use a different markup language if you do not plan to run

rake doc:app.

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.