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:
- Install and start Postgres
- Install Node.js
- Create a database in Postgres named
dreamhouse - Install gulp
- Fetch the NPM dependencies:
npm install - Start the app:
gulp serve - Check out the app: http://localhost:8200/
Run on Heroku:
Use Heroku Connect:
- Signup for a Salesforce Developer Org
- Install the DreamHouse package into the org
- Add the Heroku Connect Addon to your Heroku app
- 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 - Add mappings for
Property__c,Broker__c, andFavorite__ceach with real-time bi-direction sync. Select all of the__cfields EXCEPT the*_IMG__cones. - Restart the app so the new database tables are used
- Check out the app and verify that sync works by changing a property's price in Salesforce

