Run composer install to install composer packages/dependencies
(Optionally) Run npm install to install node packages/dependencies
Create your .env file by copying the example provided in the repository
cp .env.example .env
Run php artisan key:generate to generate and set an application key
Run php artisan migrate to run the migrations
By running php artisan serve you will start the web server, this can be visited from the outputted URL.
Opening your .env file, set the GITHUB_CALLBACK_URL variable to point to the /auth/callback route for your instance e.g. http://localhost:8000/auth/callback
Register a new OAuth application with GitHub, ensuring to fill in the same callback URL specified in your .env previously.
Once your application is created, you will be given both a client ID and secret. These can then be placed into the relative GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET variables in your .env file.
You must have the curl certificate set in your php.ini for this to function locally
Verify the location of the php.ini you are using php --ini
Ensure the setting curl.cainfo under the [curl] section has been set to the location of the cacert.pem that can be aquired from Curl.
请发表评论