The LaunchPad Accelerator is an add-on that allows developers to build and deploy Salesforce-integrated web and mobile applications 4x faster
After only a few minutes following the below setup guide, you'll have a REST API for the Salesforce tables you'd like integrated with your web or mobile application.
Since the add-on provides a full web application framework, we actually start by deploying an app to Heroku and then later provision the add-on on that app. The LaunchPad Accelerator add-on must be used in conjuction with the app deployed from the deploy button below.
Download this repository as a zip file and extract it into a preferred folder on your machine.
$ cd ~/path/to/launchpad_api
$ git init
$ bundle install
In the below command, replace
APPNAME with the name of the Heroku app you just deployed:
$ heroku git:remote -a APPNAME
$ heroku addons:create launchpad:test
$ heroku config
Create a new file
config/application.yml. Copy and paste the DATABASE_URL and LAUNCHPAD_LICENSE_KEY lines from terminal into config/application.yml (e.g.
$ bundle exec rake db:migrate db:schema:dump
$ bundle exec rake install_launchpad
authorized? to return
true. This is just while we test to make sure the API is working. We'll need to change this back to
For each table you'd like to expose API endpoints, add the following line to routes.rb within the block
scope :v1 do:
create_sweet_actions(:accounts) (replace :accounts with the pluralized table name). This generates CRUD routes for each resource (show, collect, create, update, destroy). Your routes file should look something like below:
Rails.application.routes.draw do scope :api do scope :v1 do create_sweet_actions(:accounts) create_sweet_actions(:opportunities) end end end
$ rails s
Visit one of your REST tables like so
You can remove launchpad via the CLI:
warning This will destroy all associated data and cannot be undone!
$ heroku addons:destroy launchpad:test
All launchpad support and runtime issues should be submitted via one of the Heroku Support channels.