Sample Salesforce contact manager app built on the Aerobatic HTML5 platform. You can see the app live at https://sfcontacts.aerobaticapp.com
If you want to fork your own version of this app to play around with and extend, here's the steps to follow:
- Sign-in to Aerobatic at https://aerobaticapp.com/auth/github
- Click the Create App button
- Enter a name for your app
- Rather than clone the aerobatic-starter app, clone this repo. Alternatively you could fork it on GitHub then pull down your forked version.
git clone https://github.com/aerobatic/sfcontacts.git
- Create the
.aerobatic
file as instructed. - Save the app.
- Now login to Salesforce and create a new connected app. This link will take you straight there.
- Check the Enable OAuth Settings box
- In the Callback URL box enter
https://<your_app>.aerobaticapp.com/auth/callback
whereyour_app
is the name you provided in step 3. - Add Access and manage your data (api) to the list of selected scopes
- In the Start URL enter
https://<your_app>.aerobaticapp.com
. - Enter the other require fields and click Save.
- On the following screen copy down the Consumer Key and Consumer Secret.
- Back in Aerobatic, click on the Settings button on the right. On the settings screen scroll down to the Security section. Change the Authentication option to OAuth. Then select Salesforce as the OAuth provider and paste in the Client ID and Client Secret (Client ID = Consumer Key, Client Secret = Consumer Secret). Finally check the Require https box before clicking the Update App button.
- Open a terminal and
cd
to the directory where you cloned the repository. - Run
npm install & bower install
. This assume you have node installed. Once node is installed you can runnpm install -g bower
. - Run
grunt sim --open
to launch your app in simulator mode and play around in the code. - When you're ready to push your changes to production, stop the simulator and run
grunt deploy --cowboy
.
At a commannd run: grunt test