- Fork the repo into your account
- Clone the forked repo and open in terminal
git clone <your_forked_repo_url>
-
Check whether upstream is set successfully by running:
git remote
-
If upstream is not found, add upstream with this command:
git remote add upstream https://github.com/Varun-Kolanu/issue-assigner.git
-
Fetch the code from remote:
git fetch --all
-
Install dependencies
npm install
- Run the development server
npm run dev
Now, open http://localhost:3000 in the browser
- Click on
Register GitHub app
button and create an app by following the instructions from GitHub. Recommended approach is to create a private test repo and install the app into that repo. - The required environment variables will be created automatically in the .env root file
- Restart the server by closing the terminal, opening again and running
npm run dev
to start the server. - The server has been setup successfully! Pat on your back :)
If you have already made an app in your github account and want tp use the same app again:
- Click on
or Use an existing GitHub app
to open the setup page - As said in its step 1, copy the given Webhook URL into your GitHub app's Webhook URL
- Fill the App Id, Webhook secret fields with the info of your existing GitHub app
- Create a New private key in the app settings and select that downloaded file in Private key field
- Submit and you can see .env created for you in the repo's root
- If you can't see GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET fields filled, add them manually from your GitHub app
- Restart the server. Server setup successful! Good job :)
- If you get the error that PORT is already in use, create a PORT=3001 field in .env and restart the server. Our app automatically uses that PORT field to start at the desired port.