GithubHelp home page GithubHelp logo

alexxnica / coggle-issue-importer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coggle/coggle-issue-importer

0.0 2.0 0.0 271 KB

API example program for Coggle: import issues from a github repository into Coggle.

Home Page: http://github2coggle.herokuapp.com/

License: MIT License

JavaScript 63.94% CSS 25.68% HTML 10.37%

coggle-issue-importer's Introduction

Coggle Issue Importer

What is it?

Coggle issue importer is a node.js demo application for the Coggle API that imports all the issues from a selected GitHub repository into a Coggle, grouped by their tags.

The user is authenticated for both the Coggle API and the Github API using OAuth. The passport-coggle-oauth2 module used to authorize users with Coggle, and retrieve an access token that can be sent along with requests to prove that your application is allowed to access a user's Coggles.

Try It Here!

Get the Code!

First install node.js, then:

git clone [email protected]:Coggle/coggle-issue-importer.git
cd coggle-issue-importer
npm install

Running Coggle Issue Importer

To use the Coggle API you need a Client ID, and a Client Secret – which Coggle uses to identify requests to the applications that made them.

A new Client ID and Client Secret can be created at http://coggle.it/developer. The redirect URL should be the domain (and optionally port) where you will host the application (for example, localhost or localhost:5000 for testing) followed by /auth/coggle/callback, which is the Coggle oauth authentication callback route of the app.

Since the app also uses the GitHub API, you also need a github API client ID and client secret (get one here). The callback URL for github authorization is (as you'd expect) the domain followed by /auth/github/callback.

Both these pairs of IDs and secrets then need to be provided as environment variables when you run the app. If they are missing the app will refuse to start – but if they are incorrect you will only find out when you try to use it!

COGGLE_CLIENT_ID=aaaaaaaaaaaaaaaaaaaaaaaa \
COGGLE_CLIENT_SECRET=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb \
GITHUB_CLIENT_ID=cccccccccccccccccccc \
GITHUB_CLIENT_SECRET=dddddddddddddddddddddddddddddddddddddddd \
node app.js

License

The MIT License

coggle-issue-importer's People

Contributors

autopulated avatar

Watchers

 avatar  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.