/salesforce-lds-seed

Sample start-up project for SalesForce using Lightning Design System and NodeJS

Primary LanguageHTMLMIT LicenseMIT

salesforce-lds-seed

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).

Required

Generic:

  • NodeJS

Set-up

Salesforce access
  1. 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)
  1. 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

  1. 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

  1. 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

  1. Save .salesforce file

Development

  1. Set-up SalesForce
source .salesforce
  1. Install needed dependencies
npm install
  1. Run application locally
npm start

Then check your browser. Application will be run on port 8088

Deployment

  1. Deploy from template

Deploy

  1. Deploy manually following tutorial.

Salesforce

REST API