This repository hosts the source code and installation instructions for the DreamHouse mobile app. DreamHouse is an end-to-end sample application that demonstrates how to build apps on the Salesforce platform. Visit the DreamHouse Microsite for more information.
Follow these instructions to install the Salesforce back-end.
-
Install the latest version of Cordova and Ionic 2 beta:
npm install -g cordova ionic
or (Mac):
sudo npm install -g cordova ionic
-
Clone this repository:
git clone https://github.com/dreamhouseapp/dreamhouse-mobile-app
-
Navigate to the
dreamhouse-mobile-app
directory:cd dreamhouse-mobile-app
-
Install the dependencies:
npm install
-
On the command line, make sure you are in the
dreamhouse-mobile-app
directory: -
Type the following command to run the app in the browser:
ionic serve
- If you don't see the OAuth window, enable popups and try again.
- Make sure you log in the org you installed the DreamHouse package in.
-
Install the required plugins (including the Salesforce Mobile SDK plugin) and platform from config.xml:
cordova prepare
The Salesforce Mobile SDK plugin currently requires cordova-ios version 4.2.0 which is automatically installed by
cordova prepare
(seeengine
entry in config.xml). -
Build the app for iOS:
ionic build ios
-
Open
DreamHouse.xcodeproj
in thedreamhouse-mobile-app/platforms/ios
directory -
Click DreamHouse in the left sidebar
-
In the Signing section, select a team corresponding to a valid certificate
-
Click the Run button in the toolbar to run the application on your device.