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
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
- Node.js (Tested on v8 LTS)
- npm/yarn
- Client ID/Secret for a GitKraken OAuth app
- Clone/download this repo
npm i
oryarn
depending on which tool you use- 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
npm run dev
oryarn 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
- 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
- If you aren't logged in, it will redirect you to
- 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
-
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.