GithubHelp home page GithubHelp logo

alexxnica / coggle-opml-importer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coggle/coggle-opml-importer

0.0 1.0 0.0 300 KB

Example Coggle API application, providing OPML import.

License: MIT License

JavaScript 96.18% CSS 2.01% HTML 1.81%

coggle-opml-importer's Introduction

Coggle OPML Importer

What is it?

Coggle OPML importer is a node.js demo application for the Coggle API that imports OPML outline markup files into Coggle.

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

Try It Here!

Get the Code!

First install node.js, then:

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

Running Coggle OPML 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, where you can also configure the authentication redirect URL, which should be the domain (and optionally port) where you will host the application followed by /auth/coggle/callback, which is the Coggle oauth authentication callback route of the app. For example, to run the app locally you would set it to this:

localhost:5000/auth/coggle/callback

The Client ID and Client Secret both need to be provided as environment variables when you run the app. If they are missing the app will refuse to start. If they are incorrect, requests made by the app will fail. For example, to start the app in development mode run:

COGGLE_CLIENT_ID=aaaaaaaaaaaaaaaaaaaaaaaa \
COGGLE_CLIENT_SECRET=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb \
npm devstart

License

The MIT License

coggle-opml-importer's People

Contributors

autopulated avatar

Watchers

 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.