public
Description: ambient sensor network for communities
Homepage: http://angel.makerlab.org
Clone URL: git://github.com/anselm/angel.git
angel /
name age message
file .gitignore Tue Sep 15 19:58:27 -0700 2009 started to constrain the ui to only show specif... [Anselm Hook]
file Capfile Wed May 27 00:01:54 -0700 2009 first commit of angel code [anselm]
file README Tue Oct 06 13:43:03 -0700 2009 Merge branch 'master' of git@github.com:anselm/... [User]
file Rakefile Wed May 27 00:01:54 -0700 2009 first commit of angel code [anselm]
file angel_crontab Tue Sep 15 20:06:10 -0700 2009 converted the country finder to an ilike the cr... [Anselm Hook]
directory app/ Wed Nov 04 14:07:24 -0800 2009 added a spinner to indicate that the client is ... [User]
directory config/ Mon Sep 21 01:38:03 -0700 2009 corrections to the readme [anselm]
directory db/ Wed Aug 19 23:06:35 -0700 2009 switched to expressing full bounding region rat... [anselm]
directory lib/ Wed Nov 04 14:12:15 -0800 2009 there was a bug where markers that left the cur... [User]
file notes Tue Aug 25 23:11:52 -0700 2009 cleaned up urls reverted templates temporarily [User]
directory public/ Wed Nov 04 14:07:24 -0800 2009 added a spinner to indicate that the client is ... [User]
directory script/ Tue Aug 18 18:32:58 -0700 2009 added daemonization from swiftapp - hopefully b... [User]
file test.rb Sat Aug 22 13:43:39 -0700 2009 showing people posts and urls urls are implemem... [anselm]
directory test/ Wed Aug 26 00:26:09 -0700 2009 updated ui [unthinkingly]
directory vendor/ Tue Oct 06 17:01:50 -0700 2009 a prototype improvement to the query interface ... [anselm]
README
===============
HOW TO INSTALL
===============

Also see the /about page on the site for other details that may be relevant.

1) You will need postgres and postgis.  These are used for spatial queries and for full text search as well as ordinary 
database storage. It is unlikely you'll get this running on mysql easily.

You'll need the world borders in the database - see this url:

http://blog.newsplore.com/2009/02/22/spincloud-labs-political-boundaries-overlay-in-google-maps-part-1/comment-page-1

There are some gotchas - shp2pgsql requires UTf8 support enabled.  So if you are making it from the freebsd ports for 
example you need to do a 'make config' to enable that.  You may want to also make sure that postgres is built with GEOS 
- not sure if this is needdd however.

Also the utf8 encoding is bizarre.  You may want to try encode as latin1.

Basically Make a spatially enabled database like so:

   createuser -p  # name angel password angel
   createdb -O angel angel
   createlang plpgsql angel
   psql -d angel -f /usr/local/share/postgis/lwpostgis.sql
   psql -d angel -f /usr/local/share/postgis/spatial_ref_sys.sql
<<<<<<< HEAD:README
   # see : http://mappinghacks.com/data/
   # wget http://mappinghacks.com/data/world_borders.zip
   shp2pgsql -W latin1 -d boundaries_shp/TM_WORLD_BORDERS-0.2.shp world_boundaries angel > wb_dump.sql


   psql angel < world_boundaries.sql 
=======
   wget http://mappinghacks.com/data/TM_WORLD_BORDERS-0.2.zip
   unzip TM_WORLD_BORDERS-0.2.zip
   shp2pgsql -E LATIN1 -d TM_WORLD_BORDERS-0.2.shp world_boundaries angel > wb_dump.sql
   psql angel < wb_dump.sql
   # you will want to do postgres grants on these tables to the angel owner
>>>>>>> e09c3a6f61ff56ebe999aa0a32cd3860fdd27f78:README

2) There are a pile of gems that are required:

   gem install GeoRuby # used by: script/plugin install git://github.com/fragility/spatial_adapter.git
   gem install sanitize
   gem install tsearch2
   gem install json-pure
   gem install ...

3) There is a settings.yml file that has pile of third party requirements such as keys from metacarta.

4) There is some test data to seed the database - you can load it like this:

  rake db:migrate:redo
  rake db:seed

5) I like to use passenger phusion - it is optiona.

6) type "script/server start" to run the application.  it will appear on port 80 and you can use a web browser to see 
it.