Sample project for SalesForce using Lightning Design System for kick-off purposes.
Project created based on tutorials and found meterials regarding LDS.
Demo of application can be checked here if free account is still valid (30 days grace period).
Generic:
- NodeJS
- Create file '.salesforce' with following content:
#!/bin/sh
export CLIENT_ID=YOUR-SALESFORCE-CLIENT-ID (3rd step)
export CLIENT_SECRET=YOUR-SALESFORCE-SECRET (3rd step)
export USERNAME=YOUR-SALESFORCE-USERNAME (2nd step)
export PASSWORD=YOUR-SALESFORCE-PASSWORD-AND-TOKEN (2nd step)
- Enable REST API for your organization
REST API is enabled by default when you have one of the following editions:
a. Enterprise Edition
b. Unlimited Edition
c. Developer Edition
- Generating token for your account
a) Go to 'My settings'->'Personal'->'Reset my security token'
b) Click 'Reset security token'
c) Based on instructions in e-mails paste your password and token into PASSWORD in .salesforce file
d) In .salesforce file set you USERNAME
- Generating consumer key and secret for your account
a) Go to 'Setup'
b) Go to 'Build'->'Create'->'Apps' and create new CONNECTED app with:
-
callback URL
-
enabled OAuth settings
-
proper OAuth scopes
c) paste generated consumer key and secret into .salesfoce file
- Save .salesforce file
- Set-up SalesForce
source .salesforce
- Install needed dependencies
npm install
- Run application locally
npm start
Then check your browser. Application will be run on port 8088
- Deploy from template
- Deploy manually following tutorial.