giving-page-loader
v1.1.0
Published
A deployable front-end project that publishes a JS script to the Blackbaud CDN.
Readme
This is a deployable front-end project that publishes a JS script to the Blackbaud CDN.
Running Locally
Tests can be run with command npm run test.
To run locally, run the command npm run dev and then run node demo/app.js to run a local Express server.
Access https://localhost:3000 in your browser to view the demo page.
When running express locally, you may want to replace GIVING_PAGE_LOADER_VERSION in giving-page-loaders.ts with a valid version, found in package.json
If you need to make changes to what page is loaded, or any other parameters, this can be done in demo/app.js.
An admin embeds a giving page on their site with a container div:
<div data-blackbaud-giving-page-id="74bd559f-8bad-4e5b-93e2-8c51ba494d35"></div>