Skip to content

Instantly share code, notes, and snippets.

@novemberalpha
Last active May 18, 2017 21:22
Show Gist options
  • Save novemberalpha/8012645d01cb9128665a3d098a9aeff8 to your computer and use it in GitHub Desktop.
Save novemberalpha/8012645d01cb9128665a3d098a9aeff8 to your computer and use it in GitHub Desktop.
How to build and deploy the openag_ui on a OpenAg compliant device.

How To Install and Deploy the latest openag_ui as a couchapp

Run all the shell commands inside the Raspberry Pi.

Optional: install nodejs/npm

tl;dr: Installing Node.js via package manager

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

sudo apt-get install -y nodejs

Get the code

git clone https://github.com/OpenAgInitiative/openag_ui

Build and Deploy the UI

cd openag_ui
npm install
./node_modules/grunt-cli/bin/grunt couchapp_deploy --app_db_url="http://localhost:5984/app"

Access the UI

Open your browser to http://${IP_OF_FOOD_COMPUTER}:5984/app/_design/app/_rewrite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment