Warning
This starter kit is currently out of date and doesn't follow Salable best practices. We're actively in the process of updating it.
You're looking at the easiest way to build and monetise a Trello power-up (with the help of the Salable).
To best utilise this boilerplate, you should have some experience with the basics of Trello Power-Up development.
Contained in this repository is a boilerplate Trello Power-Up that gives users
with the See Message
capability, the ability to click a button on a card and
see a message. This functionality is intentionally basic so as to best show the
core flow of working with Salable, whilst not overcomplicating the example with
Trello specifics.
This is all configurable so you can build whatever power-up you're thinking of and monetise it however you would like.
- Create a Power-Up on the Trello Power-Up Admin. Use either a hosted or development URL for the iframe connector. See Developing Locally for instructions.
- Make sure to add the
card-buttons
andon-enable
capabilities to your new Power-Up. - Create a Salable account if you don't already have one.
- Create a Salable API key.
- Create a new product on Salable. You can call this whatever you want.
- Add a
See Message
capability to the product you just created. - Create a plan, priced however you like, that gives the user the
See Message
capability you created in the previous step. - Clone this repository.
- Add your Salable API Key and product UUID on lines 18/19 of
js/client.js
. - Add your Salable API key and product UUID to the
pricing.html
config. - Add your Trello API key to the
script
inindex.html
. - Ensure you have added your new Power-Up to your Trello board.
- Build and monetise your idea!
If you'd prefer a more in-depth introduction, refer to our Creating and Monetising a Trello Power-Up Using Salable guide.
Developing the power-up on your local machine is often much easier than repeatedly deploying to some hosted environment such as GitHub Pages or Netlify.
This can be done easily with tooling such as localtunnel or a paid Ngrok account!
- Install
localtunnel
. - Run
npm install
. - Run
npm run dev
to start the template server. - Start
localtunnel
, specifying the same port:lt --port 8080
. - Visit the URL provided to you by
localtunnel
in your browser of choice. - Get your remote public IP and paste it into the input on your
localtunnel
site. (curl ipv4.icanhazip.com
is a simple way to get your current IP) - Update the power-up URL and your "Allowed Origins" on the
Power-Up Admin Portal to include your
new
localtunnel
address. - Start developing!