GithubHelp home page GithubHelp logo

isabella232 / flowdock-example-integration Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flowdock/flowdock-example-integration

0.0 0.0 0.0 1.17 MB

Ruby 81.80% CSS 1.97% Shell 0.48% HTML 15.75%

flowdock-example-integration's Introduction

Polldock - A Flowdock example integration

This is a simple application to create online polls. It illustrates how to send threaded activities into Flowdock.

Polldock-Flowdock screenshot

Setup

Install dependencies with bundler (bundle install).

In Flowdock, create an OAuth application and use the following values:

Callback URL: <WEB_URL>/auth/flowdock/callback
Setup URI: <WEB_URL>/flowdock/setup?flow={flow_id}&flow_url={flow_url}
(Optional) Configuration URI: <WEB_URL>/flowdock/configure?source={source_id}&source_url={source_url}
Icon: Choose an appropriate image for the application. You can use the images found in assets/images.

After creating the application, you will receive Application Id and Secret values. Copy the sample.env file to .env and add these values to the corresponding FLOWDOCK_CLIENT_ -prefixed environment variables. Change WEB_URL to match the public endpoint for your application e.g. http://localhost:3300.

Running the server

The following command starts the server and reloads it after filesystem changes:

bundle exec rerun -- foreman start -p 3300

Pairing with Flowdock

Open the application from https://www.flowdock.com/oauth/applications and use the Select a flow to generate a Setup URI -selector to generate a pairing url for the selected flow. Click the generated link to start the pairing routine. The selector uses the Setup URI that was given to the application and populates the flow_idand flow_url parameters to the uri.

After successfully setting up the source, the application will show up in the flow's inbox sources view and in the search filters.

Heroku deployment

  1. Create a Heroku application.
  2. Add Postgres to your Heroku application.
  3. Set up all the environment variables in Heroku.
  • Remember to change the WEB_URL component of the Callback, Setup and Configuration URIs in Flowdock to match the public endpoint for your Heroku application.
  1. Push to Heroku.

flowdock-example-integration's People

Contributors

vsaarinen avatar zmalone avatar

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.