Giter Site home page Giter Site logo

wfps2023-starter's Introduction

Web Framework Perspective Summit 2023 - Starter kits

Instruction regarding creating a Github app for fetching repo discussions

Create a GitHub app and install it on the repository. This has to be done by the repo owner but only has to happen once.

  • Open https://github.com/settings/apps/new

  • Enter the following settings:

    • Github App name: Your choice but inlude "(local dev)" for clarity.
    • Homepage URL: http://localhost:1234 (1234 can be replaced by your dev server port number, e.g., 3000 for Next, but it ain't important really ...)
    • Callback URL: http://localhost:1234/oauth/callback
    • Uncheck "Active" under "Webhook".
    • Under "Permissions", expand "Repository permissions". Check "Read-only" for "Discussions".
    • For the other options, leaving the defaults should be enough.
  • Once the app is installed, use "Install App" to add it to your team's repo. You'll find a numeric "installation id" in the URL.

  • Share the app id and the client id with your team members.

  • Each team member will also need a private key and a client secrets. Note that these cannot be accessed in the UI later. Copy them immediately.

  • Create a .env file with the content:

    GITHUB_REPO_OWNER=frigus02
    GITHUB_REPO_NAME=wpfs2023-starter
    
    GITHUB_CLIENT_ID="Client ID"
    GITHUB_APP_ID="App ID"
    GITHUB_INSTALLATION_ID="Installation id for this repo"
    GITHUB_CLIENT_SECRET="Client secret"
    
  • Copy the private key to .env.private-key.pem.

The repo owner needs to create the application but can generate keys and secrets for each team member. For deployment, create an app with similar settings but include "(prod)" in the name and adjust the URLs accordingly. You can also add multiple callback URLs if you want to try multiple rollout stages.

wfps2023-starter's People

Contributors

jkrems avatar pmvald avatar frigus02 avatar jessicajaniuk avatar thepunderwoman avatar pkozlowski-opensource 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.