Skip to content

Ruby for Good 2016: A tool to help researchers score observations of animal behaviors

Notifications You must be signed in to change notification settings

rubyforgood/panda_app

Repository files navigation

Panda App

Ruby for Good

This is a 2016 Ruby for Good project.

Goal

We are building a web app for use on phones and tables that will help researchers record observations of animal behavior and output the data in csv form.

Major Features

  • User creation and authentication
  • Observation Schema Creation - define the behaviors and subjects being observed before observations start
  • Sessions - Combine schema with rules for particular methods and metadata (start time, location, etc)
  • Observation Collection - A real time mode for collecting observations, this part needs to be responsive
  • Data export - Covert the data to csv form and get it onto the researchers computers (email is preferable)

Quick Links

Setup

System Requirements

  • Ruby 2.3.1
  • Postgresql 9.5
  • bundler gem
  • node (4.x or greater)

Initial Setup

  • Clone this repo git clone git@github.com:rubyforgood/panda_app.git
  • cd into the folder for the repo cd panda_app
  • bundle bundle install
  • install node packages npm install
  • setup the database rake db:create
  • To serve the app locally rails server

Tests

  • Run the rails test suite with bundle exec rspec
  • Run the javascript tests with npm test

The Stack

  • Ruby 2.3
  • Rails 4.2
  • RSpec
  • Postgres 9.5
  • Puma
  • TravisCI

Deployment

TravisCI automagically deploys the master branch to panda-app.herokuapp.com when a build on the master passes.

Workflow

  1. Select an open issue to work on, create an issue if there isn't one
  • Make sure you local master branch is up to date with master on github
git checkout master && git pull origin master
  • Create a feature branch, include the issue number
git checkout -b branch_name
  • Write code (and tests)
  • Push your branch to github
git push -u origin branch_name
  • Open a pull request on github, please have at least one team member review it and give it a 👍
  • Merge into master - this will trigger a deploy if the tests pass

About

Ruby for Good 2016: A tool to help researchers score observations of animal behaviors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published