by gabesumner

GitHub Readme.md

DreamHouse Web App

This sample app is a mobile web app for DreamHouse that runs on Heroku and optionally uses Heroku Connect to get data from Salesforce. Check out a demo:


This app is built with Ionic and Node.js so you can easily run it locally and on Heroku.

Run Locally:

  1. Install and start Postgres
  2. Install Node.js
  3. Create a database in Postgres named dreamhouse
  4. Install gulp
  5. Fetch the NPM dependencies: npm install
  6. Start the app: gulp serve
  7. Check out the app: http://localhost:8200/

Run on Heroku:

  1. Deploy on Heroku
  2. Check out the app: http://<YOUR APP NAME>.herokuapp.com

Use Heroku Connect:

  1. Signup for a Salesforce Developer Org
  2. Install the DreamHouse package into the org
  3. Add the Heroku Connect Addon to your Heroku app
  4. Setup Heroku Connect by clicking on Heroku Connect in the Resources tab of the app's management dashboard: https://dashboard.heroku.com/apps/YOUR_APP_NAME/resources
  5. Add mappings for Property__c, Broker__c, and Favorite__c each with real-time bi-direction sync. Select all of the __c fields EXCEPT the *_IMG__c ones.
  6. Restart the app so the new database tables are used
  7. Check out the app and verify that sync works by changing a property's price in Salesforce