Skip to content

Enter a short description of your project here.

License

Notifications You must be signed in to change notification settings

erikcaineolson/HARE

 
 

Repository files navigation

SHARE (Sacramento's Human Assistance Resource Exchange)

Project Description

The mission of SHARE is to break down the silos between government agencies and organizations that share the common goal of providing Human Assistance. For example, the Food Bank networks with local food pantries, a School District networks with schools under its administration, and the Homeless Assistance agency networks with local homeless shelters. Sometimes their constituents overlap, but these agencies know little about each other's needs, available resources, and data. SHARE addresses this disparity on two fronts: first, it's a platform for organizations and individuals to reach out to each other to provide resources or request resources that other agencies have in surplus, like clothing, furniture, non-perishable foods, computers, and more. Second, it supports the civic open data initiative by collecting anonymous data that is released as an API* (see Additional Information section). This will provide other civic developers and researchers invaluable cross-sectional data that could uncover insights as to common issues shared by different types of HA programs or initiatives that work well in one agency that can be applied to another.

Contributors

Stakeholder Engagement

  • Jerry Gray, DTech (Sac County Dept of Technology)
  • Guy Sperry, DTech (Sac County Dept of Technology)
  • Keith Arnett, DTech (Sac County Dept of Technology)

Developer Documentation

Requirements

  • Git
  • Ruby 2.2 (RVM recommended for managing Ruby versions)
  • Rails 4.2
  • Postgres >= 9.3
  • ExecJS supported JavaScript runtime (therubyracer gem is included)

To check your ruby version, run $ ruby --version. If your version is 2.2.0, then you’re good to go.

If not, download RVM if not already installed, then run $ rvm list to see your installed ruby versions. If you have 2.2.0 installed, run $ rvm use ruby-2.2.0. Otherwise, install or update your ruby version with RVM.

  1. Download or clone this repository from GitHub $ git clone https://github.com/HumanAssistanceResourceExchange/SHARE.git SHARE
  2. Change directory into the project folder $ cd SHARE
  3. Download dependencies $ gem install bundler then $ bundle install
  4. Set up the Postgres database (see Database section below)
  5. Run $ rails server
  6. Point your browser to localhost:3000 to preview the app

API Keys

We are using Figaro for key management.

To install, run $ bundle exec figaro install

This will create a key management YAML file at app/config/application.yml and add it to your .gitignore. This config file should not be committed to the repo. Please edit this file on your local machine as new keys are added.

Figaro is deployment-friendly and values can be set for Heroku with:

figaro heroku:set -e production

PDF Form Fill

We are using PDF Toolkit (pdftk) from PDF Labs. This requires you to install pdftk binaries before you can make use of the pdf-forms gem bundled in this project.

Download and install the appropriate package for your platform:

Database

  1. Install PostgreSQL
  2. Create the database $ bundle exec rake db:create
  3. Load the schema $ bundle exec rake db:schema:load
  4. (Optional) Seed the database with default admin user and starter data $ bundle exec rake db:seed
  • Note: The default behavior for db:seed has been modified to use different datasets based on environment. See notes in the seeds.rb file.

Additional Information

We respect our organizational users and their constituents, so we take precautions to ensure neither are exploited intentionally or accidentally by using our app. Considering the sensitive nature of services provided by our users, the database schema and API are designed to separate user information (real names) from addresses and from app activity. For example, the API may provide data as to how many users requested resources from a certain category, and whether they were individuals or organizations making the request, but not which users. The API may provide data as to how many users are in a certain zipcode, but not which users nor specific addresses. The API may provide data showing how many users made requests to multiple agencies, but not which users made the request. The API does not allow viewing whether a specific individual requested or received specific types of donations or from which agency.

About

Enter a short description of your project here.

http://YourDeployedApp.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 49.5%
  • CSS 32.3%
  • HTML 17.4%
  • Other 0.8%