Giscus
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.
https://github.blog/changelog/2019-06-03-authors-subscribed-to-gists/
https://speakerdeck.com/mattstauffer/leveraging-laravel-launching-side-projects-quickly-with-laravel
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
.env
file, 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.test.example
to.env.test
and set the following GitHub env var in.env.test
, from a generated token:
TESTING_USER_GITHUB_API_TOKEN=someLongString