OpenAgricultureFoundation / openag_ui

UI for OpenAg food computers
GNU General Public License v3.0
53 stars 27 forks source link

Make openag_ui couchapp #127

Closed gordonbrander closed 7 years ago

gordonbrander commented 7 years ago

Allow openag_ui to be deployed as a "couchapp" (e.g. a static webapp hosted and served from CouchDB, like Couch's database browser.)

grunt deploy_couchapp or npm run deploy_couchapp will look for a couchdb instance at http://raspberrypi:5984 and will build and push the UI to a design document.

Fixes #126

gordonbrander commented 7 years ago

Work in progress for https://github.com/OpenAgInitiative/openag_ui/issues/126

gordonbrander commented 7 years ago

This PR is ready. The only thing left is to figure out a deploy strategy.

Here's an initial idea... Add the following to the install script:

  1. Publish built dist. (Check in /dist directory, or record location of release zip files in a manifest`)
  2. Download dist files to tmp dir
  3. Install with script (couchapp, ideally)
  4. Trash tmp dir

This still leaves the question of what to do for Docker. Maybe we keep the dist dir around and push every time?