Giter Club home page Giter Club logo

nextjs-skeleton-github's Introduction

This is a Next.js project with an API exposed at /api/github/webhooks to listen to and interact with GitHub App webhooks

Getting Started

  • Setup a new GitHub App on your personal account: https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/registering-a-github-app
  • Create a new .env.local file and copy over the contents from .env.example
  • Update the fields with the items from the created GitHub App
  • Run npm run build & npm run start to start the application
  • You will need to forward the GitHub webhook events on to localhost. Eg: Smee using the command: smee -u <YOUR_SMEE_URL> -t http://127.0.0.1:3000/api/github/webhooks. You might need to install smee cli for this
  • Create an Issue on your configured GitHub repo to test it out

Troubleshooting

If you have issues with Smee forwareding due to corporate VPNs i.e. you see and "Error unable to get local issuer certificate", most likely the issue is that node does not know the custom certificates for TLS validation. To fix this, check to see what the additinal root certs you need to notify node about. On MacOS, you shoud find these in your Keychain as or similar.

  1. Export all of them eg: Zscalar Root CA cert, X Corporate Root CA Cert from the Keychain as pem files
  2. Create a new .pem file eg: node_extra_certs.pem and copy both the certificates into this file
  3. Set the NODE_EXTRA_CA_CERTS to point to this file

export NODE_EXTRA_CA_CERTS=<Full path to the new *.pem file>

Source: https://stackoverflow.com/questions/36494336/npm-install-error-unable-to-get-local-issuer-certificate

nextjs-skeleton-github's People

Stargazers

 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.