/HailOAuthExample

Hail OAuth workflow to grab articles

Primary LanguagePHP

Stack

  • PHP 8.1
  • Laravel v9.3.1

Installation / Setup

  1. Clone repository & move into directory
git clone git@github.com:JasonMortonNZ/HailOAuthExample.git Hail
  1. Change directory
cd Hail
  1. Create an .env file with bare essentials (HAIL_ entries are important!)
cp .env.example .env 
  1. Generate an app key
php artisan key:generate
  1. Install composer dependencies
composer install
  1. Setup local Valet link (optional)
valet link hail --secure # --secure flag for HTTPS (again optional)
  1. Visit https://hail.test and hit the "Connect to Hail" button
  2. Follow the OAuth2 flow and upon redirect view the articles!!