Giter Club home page Giter Club logo

book-order's Introduction

Book Order

Email to Pivotal Tracker Gateway

This project accepts email

and creates a new Story in Pivotal Tracker via the API.

Features

  • Creates new stories in Pivotal Tracker with subject as the title and the email body as the story description.
  • Support for creating story assigned to other project members.
  • You can put labels in the subject line in this format: [foo] [bar]
  • If the subject contains the word "bug" (case insensitive), then the story type will be Bug (otherwise, it's a Feature).
  • Support for attachments.

Installation

npm install
...
git push heroku

Configuration

For SendGrid you need to configure hostname and url address on the Parse API settings page.

For MailGun you need to create a new Route.

This is destination url you need to use:

http://APPURL/EMAIL_GATEWAY/projects/PROJECTID/stories/new/TOKEN
  • Replace EMAIL_GATEWAY with one of these possible values: sendgrid, mailgun.
  • Replace APPURL with the url of your ap on Heroku or elsewhere.
  • Replace PROJECTID with the numeric project id from Pivotal Tracker (the id number in the URL when viewing the project).
  • Replace TOKEN with your user API token from Pivotal Tracker.

Setup

If you want notifications, be sure to set the following environment variables:

STORY_NOTIFICATION_FROM
ERROR_NOTIFICATION_TO_SENDER (set it if you want user to be informed about not created stories)
BUG_NOTIFICATION_TO
BUG_NOTIFICATION_FROM
SMTP_HOST
SMTP_PORT (optional)
SMTP_USE_SSL (optional)
SMTP_AUTH_USERNAME (optional)
SMTP_AUTH_PASSWORD (optional)

On Heroku, you can set env vars like so:

heroku config:add KEY=VAL

Testing

jasmine-node spec --coffee
# or
node node_modules/jasmine-node/lib/jasmine-node/cli.js spec --coffee

book-order's People

Contributors

nwp avatar seven1m avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

oxos element84 urkle

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.