Skip to content

jimclouse/bagsintrees

Repository files navigation

Bags In Trees

Mapping Plastic Bag Pollution Around the World

Every Instagram photo of a plastic bag in a tree, tagged with #bagsintrees, is displayed on our bag map. Using this map, we'll be able to see the extent of plastic pollution in trees throughout the world.

Only a small percentage of the plastic bags that litter our cities become caught in trees. These bags in trees serve as an indicator of the level of plastic bag pollution in a given area.

Cities throughout The United States and other countries are moving to ban or dis-incentivize the use of plastic bags. Most recently, the state of California just passed legislation preventing grocery stores from using plastic bags. Data from Bags In Trees can be used by groups promoting such causes to show the prevelance and distribution of bags in their area.

Bags In Trees data can also be used to highlight cities with plastic bag bans by showing the relative scarcity of plastic bag pollution in trees.

Cities can leverage the geo-tagged data of plastic bags in trees to locate and remove plastic bags.

All you need is an Instagram account and your smart phone. Visit http://wwww.bagsintrees.org to get started!

Installation

Installation steps are not quite complete. I'll add more over time.

  • Clone this repo
  • Install npm and node (https://github.com/creationix/nvm is an easy method)
  • Install mysql
  • Install gulp 'npm install -g gulp'
  • Run the sql/create.sql script on your mysql database
  • npm install
  • Create a folder called etc under the root, save the following exports to a file called 'environment' under ./etc
  export ENVIRONMENT=development/production
  export CLIENT_ID=
  export GOOGLE_API_KEY=
  export mysqlUser=
  export mysqlPassword=
  export mysqlHost=localhost
  export mysqlDatabase=bagsintrees
  export msyqlConnectionPoolLimit=250

Starting

Locally: ./dev_start

License

Copyright (C) 2014 Jim Clouse

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Mapping Plastic Bag Pollution Around the World

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors