Code Monkey home page Code Monkey logo

dreamhouse-mobile-app's Introduction

DreamHouse Mobile App

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.

Install the Salesforce Back-end

Follow these instructions to install the Salesforce back-end.

Install the Application

  1. Install the latest version of Cordova and Ionic 2 beta:

    npm install -g cordova ionic@beta
    

    or (Mac):

    sudo npm install -g cordova ionic@beta
    
  2. Clone this repository:

    git clone https://github.com/dreamhouseapp/dreamhouse-mobile-app
    
  3. Navigate to the dreamhouse-mobile-app directory:

    cd dreamhouse-mobile-app
    
  4. Install the dependencies:

    npm install
    

Build and Run in your Browser

  1. Install gulp if you don't already have it on your system:

    npm install -g gulp
    

    or (Mac):

    sudo npm install -g gulp
    
  2. Install force-server:

    npm install -g force-server
    

    or (Mac):

    sudo npm install -g force-server
    
  3. Build the JavaScript app using the Ionic build script:

    gulp build
    
  4. Run the app in the browser:

    force-server --root www
    
    • 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.

Build and Run on Device

  1. Restore the state of the application using the cordovaPlugins and cordovaPlatforms entries in package.json:

    ionic state restore
    
  2. Install the Mobile SDK plugin:

    cordova plugin add https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin
    
  3. Build the app for iOS:

    ionic build ios
    
  4. Open DreamHouse.xcodeproj in the dreamhouse-mobile-app/platforms/ios directory

  5. In Xcode, run the application, or select Product > Archive in the menu for App Store or Enterprise deployment. If the build fails in Xcode, select the DreamHouse target, click the Build Settings tab, search for bitcode, select No for Enable Bitcode, and try again.

dreamhouse-mobile-app's People

Contributors

ccoenraets avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.