Skip to content

ougabriel/ougabriel-create-probot-app

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Create Probot App

CI

create-probot-app is a command line (CLI) Node.js application that generates a new Probot app with everything you need to get started building. πŸ‘·πŸ½β€

More specifically, this command line interface allows you to select from our pre-defined blueprints to choose a basic working example to start from.

Installation

Make sure you've got Node.js installed on your workstation, then open your terminal and type the following command:

  • if you're using npm (the package manager bundled with Node.js):

    npx create-probot-app my-first-app
  • if you're using Yarn:

    yarn create probot-app my-first-app

and follow the instructions printed on the terminal as you go. create-probot-app will then take care of the heavy lifting required to setup a Probot app development environment, with proper folder structure, and even installing all the basic Probot dependencies.

How to run locally

See the Probot docs to get started running your app locally.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Maxim Devoir

πŸ’» πŸ‘€

Alexander Fortin

πŸ’»

Bex Warner

πŸ’» πŸ‘€

Tommy Byrd

πŸ’»

Jason Etcovitch

πŸ’»

This project follows the all-contributors specification. Contributions of any kind welcome!


###Gabriel Bot App Configuration Set up

Step 1: Verify Node.js and npm Versions

Ensure that you have the required versions of Node.js (at least 18.0.0) and npm installed. Run the following commands to check:

node -v
npm -v

If the versions are not as required, download and install the latest version of Node.js from nodejs.org.

Step 2: Clear npm Cache

Sometimes, clearing the npm cache can resolve the issue. Lets Run:

npm cache clean --force

Step 3: Install create-probot-app Globally

Try installing create-probot-app globally:

npm install -g create-probot-app

Step 4: Create the App

Then try running the command again:

create-probot-app my-first-app

image

When the command is run; we see a series of output and a dir with the name of the app is created as shown in the below

Screenshot 2024-07-19 002223

App is successfully created;

image

Step 5: Start the App

Here we can see the details of the newly created dir and the contents of the index.js file image

Run the following command to start the app

cd my-first-app
npm start

App running on port:3000 image

When you click on Register GitHub App should get an error that says image

This is because this App is not created using a Manifest file

###Step 6: Configuring the App

To run your app in development, you will need to configure a GitHub App's APP_ID, PRIVATE_KEY, WEBHOOK_SECRET, and WEBHOOK_PROXY_URL in order to receive webhooks to your local machine.

On your local machine, copy .env.example to .env in the same directory. We're going to be changing a few things in this new file. Go to smee.io and click Start a new channel. Set WEBHOOK_PROXY_URL to the URL that you are redirected to. When this is done; add the smee client to your local machine. We need the smee to send payloads to our local machine Run the following command

npm install --global smee-client

image

Then the smee command will forward webhooks from smee.io to your local development environment.

smee -u <https://your webhook-proxy-url>

About

πŸ€–πŸ“¦ Create a new probot app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.6%
  • TypeScript 43.8%
  • Shell 3.1%
  • Dockerfile 0.5%