Giter Site home page Giter Site logo

connectionmaster / glo2markdown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from axosoft/glo2markdown

0.0 0.0 0.0 2 MB

This is an Next.js app demonstrating how to use GitKraken Glo's OAuth and API.

Home Page: https://glo2markdown.now.sh

JavaScript 100.00%

glo2markdown's Introduction

Glo2Markdown

OAuth

GitKraken Glo uses OAuth to allow developers to create apps that access users' data on their behalf. More details on our OAuth system can be found here

API Calls

After obtaining an OAuth token for the user, the app makes API calls to get a list of their boards, and then gets details for the selected board. For more information on the Glo API, you can read up on our API Docs

Running the app

Prerequisites

Steps

  1. Clone/download this repo
  2. npm i or yarn depending on which tool you use
  3. Create a .env file based on the template
    • Replace Client ID/Secret with your OAuth app info
    • Replace the session secret with a string of your choosing
  4. npm run dev or yarn dev
    • This will run a dev server on port 8080
    • Debugging available on port 9229
    • Client should have hot reloading
    • Server should automatically restart when you change other files

Using the app

  1. The index page / will display your list of boards and allow you to select from a dropdown.
    • If you aren't logged in, it will redirect you to /auth/login
  2. Once you've selected a board, you are directed to /board?id={BOARD_ID}
    • This page will load the columns and cards, and display your board in a markdown format

Notes

  • Sessions are stored in the in-memory implementation which is not meant for production! For a production app, please update and secure the session store as well as the user store. Compatible session stores for express-session

  • While we chose to use Next.js for simplicity, you can use any appropriate tech stack to build out Glo OAuth/API apps.

glo2markdown's People

Contributors

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