Loading repository data…
Loading repository data…
optro-cloud / repository
This repository contains a feature-complete Trello Power-Up that can be used as a template for new Power-Ups! It implements a simple note-taking (To-Do App) application which allows you to add notes to Cards. It implements all available capabilities in an easy to use project written in TypeScript, with React UI.
This repository contains a feature-complete Trello Power-Up that can be used as a template for new Power-Ups! It implements a simple note-taking (To-Do App) application which allows you to add notes to Cards and then interact with these Cards across the interface.
All available capabilities are implemented in TypeScript, with the UI provided by React Components. The project takes advantage of the Hot Reload technology provided by React and Webpack to make development a breeze!
We've hosted the Power-Up on GitHub Pages so that you can try out the Power-Up without needing to download or install anything. Simply follow the instructions below to see what the sample offers:
https://optro-cloud.github.io/trello-powerup-full-sample/Create a custom build of this sample using our Generator.
It's as easy as running npx @optro/create-trello-powerup@latest in your command line and following the on screen instructions.
The generator allows you to select which features to enable and has integrated support for monetization with Optro using Optro vendor
To get started with the generator you can follow our step-by-step walkthrough.
This template contains everything you need to get developing, hosting and monetizing your own Power-Up, with example extension points, such as:
This template aims to provide a good starting point for new development and as such, it endorses the latest technologies:
yarn watch) - Use the Hot Reload and Dev Server together to refresh changes to the Power-Up automatically - meaning you can spend less time refreshing the browser and more time developing. This makes changing the UI and CSS as seamless as possible during development. This script also automatically configures and starts an ngrok tunnel that provides you with a public HTTPS URL that can be entered into the Power-Up Admin interface to add it to Trello.yarn build) - Build your Power-Up into static files in the dist folder, which can be used to deploy your Power-Up to a hosting solution like S3, Google Cloud Storage or Azure Storage.yarn serve) - If you're hosting the Power-Up within a runtime such as Node.js or Docker, you can use a simple static file server to serve the files. Make sure you're built the Power-Up with yarn build first!.eslintrc.jsonUntil now, adding monetization to a Trello Power-Up is time consuming and can bring a lot of extra work. The great news is that’s now a thing of the past!
Optro, the first marketplace platform for Trello Power-Ups, has now been made available to any developer and makes it easy to monetize your Power-Ups with an integrated licensing system.
It’s free to sign up, and once registered follow this step-by-step guide to begin adding monetization to your Power-Up.
The best way to get started is to use the Power-Up Generator to build a template for you in minutes. The Generator uses this repository to generate a new Power-Up (Project) based on your requirements. We would recommend this approach for most developers, especially if you are considering monetization.
However, if you'd like to use the template directly without the Power-Up Generator, please follow the steps below to get going:
.env file based on the .env.example file and change the following values:
yarn install or npm installyarn dev or npm run devFind out how the project is structured and what the files do!
src/
capabilities.ts - This is the Power-Up descriptor and describes which capabilities are implemented - e.g. Card Buttons. Any UI elements that are rendered by Trello itself are contained in this file.router.ts - This file contains the React-Router code, which is used to render the correct React components for their corresponding URL's.server.ts - A basic script to serve the pages using Node.js (not recommended, as you can use the static files in /dist to save overhead/money). Call it with yarn startdev-watch.ts - A script that runs a self-contained development environment. Call it with yarn watchdev-server.ts - Runs the 'server.ts' file after reading in any environmental variables from your .env file. Call it with yarn start:dev.api/ - Contains any abstracted API functions that are used by the App (e.g. openPopup, getNotesForCard).<capability>/ - Each capability that includes a React Front-End has its own folder components and styles.types/ - Contains Typings for the Power-Up and for Trello.static/ - Contains static files that should be included in the Power-Up distribution (e.g. Favicon)templates/ - Contains handlebars templates that are used by Webpack to build matching *.html files for each extension point..env.example - An example environmental variables file that can be used during development (make a copy of this file, name it .env and modify it according to your requirements.package.json - This file describes the dependencies used by the Power-Up, basic information and scripts.webpack.config.ts - The Webpack file describes 'how the Power-Up should be compiled' and handles transpiling, file generation and also contains the configuration for running the Webpack Dev Server.
yarn build to build the app in production mode.yarn build:dev to build and watch for changes in development mode.There are a number of ways you can run your Power-Up in production.
We recommend compiling the Power-Up into static HTML and CSS files and serving this using a Cloud Hosting Provider.
The easiest way to deploy your Power-Up is by compiling it into static files and serving them from a Hosting Provider:
yarn build or npm run build command.dist/ folder to your chosen Hosting Provider:
You can choose to host t