Skip to content

jwb96/SFMCBlockSDK_bulletproofbutton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sampleblock

Sample Salesforce Marketing Cloud Content Builder Block using the blocksdk.

Deployment

As a node app:

npm install
npm start

One click deployment to heroku:

Deploy

Building your own block from here

# do not fork
git clone https://github.com/jwb96/SFMCBlockSDK_bulletproofbutton.git <my block name e.g. myblock>
cd <my block name e.g. mybock>
# create your own empty github repository for your new block and copy the clone url for it
git remote set-url origin <your empty repo url>
npm install

Files to edit:

  • src/main.js for your code
  • dist/index.html for your markup
  • package.json for your block name and description
  • README.md to be your own README

To test your changes locally:

npm run build; npm start

Then go to the block tester app and enter http://localhost:3000 in the text field and click a block. You will have to allow unsecure iframes in your bowser (top right in the url bar in Chrome) first.

Once ready to deploy, commit your changes to your repo and click the deploy to heroku button on it.

About

Custom bulletproof button content block using SFMC BlockSDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published