Note: As of March 5, 2020 Giscus just has a static homepage. No need to update anything on this code because there is no longer a staging site.
Note: As of May 8, 2019, GitHub added gist notifications natively. We're disabling the service, but keeping it online for posterity.
Looking for the code when it was using Cashier & Stripe? Check the Archive-Cashier branch.
Local Development Setup:
- Download dependencies:
composer install yarn
- Copy .env.example to .env:
cp .env.example .env
- Generate application key:
php artisan key:generate
Create a new OAuth App in your github account:
Set the Github environment variables in your
.envfile, from a generated OAuth app
For example, if you are using Laravel Valet, you likely have Giscus running on
http://giscus.test. Your Github .env variables should look like this:
GITHUB_ID=someLongString GITHUB_SECRET=someLongString GITHUB_URL=http://giscus.test/auth/github/callback
- If you want the tests to work, copy
.env.testand set the following GitHub env var in
.env.test, from a generated token: