codeforamerica / public_art_finder

All the stuff needed to get a barebones Public Art Finder mobile website setup in your city.
25 stars 27 forks source link

Public Art Finder

How to setup the 'viewer' mobile app

  1. Get a CouchDB instance
  2. Install couchapps
    • recline or run: curl -X POST http://user:pass@YOURCOUCH/_replicate -d '{"source":"http://max.iriscouch.com/apps","target":"YOURDB", "doc_ids":["_design/recline"]}' -H "Content-type: application/json"
    • geojson-utils or run: curl -X POST http://user:pass@YOURCOUCH/_replicate -d '{"source":"http://max.iriscouch.com/apps","target":"YOURDB", "doc_ids":["_design/geo"]}' -H "Content-type: application/json"
    • viewer_couchapp (from this repo) or run: curl -X POST http://user:pass@YOURCOUCH/_replicate -d '{"source":"http://mertonium.iriscouch.com/apps","target":"YOURDB", "doc_ids":["_design/viewer"]}' -H "Content-type: application/json"
  3. Upload data
    • Via recline
    • Also upload template (so that the correct fields are in recline)
  4. Clean the data
    • Examples of common transforms
    • Make sure that the default fields are there
    • remove any columns you don't want
  5. Visit the app.

(put on datacouch?)