Giter Site home page Giter Site logo

backlog-trello-sync's Introduction

UNDER DEVELOPMENT, INCOMPLETE AND HIGHLY UNSTABLE

Backlog Trello sync

Synchronize your backlogapp with trello.

Running

First ensure that the configuration is right for your needs. You can override all values by setting the corresponding ENV variables. All following values in config.js need to be set:

{
  env: {
    doc: 'The applicaton environment.',
    format: ['production', 'development', 'test'],
    default: 'development',
    env: 'NODE_ENV'
  },
  key: {
    doc: 'Trello API key',
    format: val => {
      if (!/^[a-fA-F0-9]{32}$/.test(val)) {
        throw new Error('must be a 32 character hex key')
      }
    },
    default: null,
    env: 'API_KEY'
  },
  secret: {
    doc: 'Trello API OAuth secret',
    format: val => {
      if (!/^[a-fA-F0-9]{64}$/.test(val)) {
        throw new Error('must be a 64 character hex key')
      }
    },
    default: null,
    env: 'API_SECRET'
  },
  ip: {
    doc: 'The IP address to bind.',
    format: 'ipaddress',
    default: '127.0.0.1',
    env: 'IP_ADDRESS',
  },
  port: {
    doc: 'The port to bind.',
    format: 'port',
    default: 4001,
    env: 'PORT'
  },
  dbUrl: {
    doc: 'The URI of the Backlog MongoDB.',
    format: 'url',
    default: 'localhost:27017',
    env: 'DB_URL'
  }
}

key and secret have no default values on purpose. Please use your own. You can get both here. If you agree with all settings, start the server with:

API_KEY="<trello-api-key>" API_SECRET="<trello-api-secret>" npm start

Developing

If you want to automatically have the server restarted while developing, you would want to let nodemon watch your changes. You can do this by running:

DB_ULR="<url-to-backlog-db>" npm run dev

You can find the Backlog DB URL by running meteor mongo.

Endpoints

โš  Important โš 

Each request needs to be a POST request and have the keys token and secret in the payload. These are the token and secret you get once you authorized this microservice against the Trello OAuth mechanism. While running the server in development mode, you can do this by going to http://localhost:4001/login.

List Trello boards

Endpoint: POST /list-boards

Required:

  • token
  • secret

List Trello lists for board

Endpoint: POST /list-lists

Required:

  • token
  • secret
  • boardId: the id of the board for which to get the lists

Create a Trello board

Endpoint: POST /create-board

Required:

  • token
  • secret
  • name: the name of the board

Create a Trello list

Endpoint: POST /create-list

Required:

  • token
  • secret
  • name: the name of the list
  • boardId: the id of the board to create the list in

Export the active sprint to a Trello list

Endpoint: POST /synchronize

Required:

  • token
  • secret
  • backlogId
  • listId

backlog-trello-sync's People

Contributors

barboni avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

backlogapp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.