/scrumrulesfortrello

Ensure trello cards are assigned points by undo'ing invalid card moves

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

scrumrulesfortrello

Ensure trello cards are assigned points by undo'ing invalid card moves

requirements

NodeJS 4+

setup

clone the code and run in project folder

npm install

you will need to create trello account which will be used for bot, get oauth tokens and create file config.js in project directory with the following content

module.exports = {                                                                 
    appKey: '', // The key grabbed from this page https://trello.com/app-key                                    
    userToken: '', // Server token grabbed by allowing access on this page https://trello.com/1/authorize?expiration=never&scope=read,write,account&response_type=token&name=Server%20Token&key=531e6da2de91b424916fd59850d4adf8
    origin: '' // This will be origin of your server which bot use to add webhooks, e.g. http://example.com
};

now you can start server with

npm start

On the server pm2 can be used to manage the server. Basic configuration file may look like this

{
    "name": "scrumrulesfortrello",
    "script": "./bin/www"
}

after we save it as app.json we can start server pm2 start app.json or restart it with pm2 stop app.json

After adding bot to new boards you'll need to add webhooks to these boards. This can be done by openning this page in your browser http://YOUR_HOST/trello/updateWebhooks