Code for Laravel with Elasticsearch and Okta tutorial
Code for A Developer’s Guide to Elasticsearch with Laravel and Okta.
After cloning the repository run the following command to install dependencies:
composer install
Copy .env.example
to .env
:
cp .env.example .env
And add values for the following keys in .env
:
OKTA_BASE_URL=
OKTA_CLIENT_ID=
OKTA_CLIENT_SECRET=
OKTA_REDIRECT_URI=
ELASTICSEARCH_HOST=127.0.0.1
ELASTICSEARCH_PORT=9200
ELASTICSEARCH_SCHEME=http
ELASTICSEARCH_USER=
ELASTICSEARCH_PASS=
Create the SQLite database:
touch database/db.sqlite
The migrate the changes:
php artisan migrate
Run the following command to start the server:
php artisan serve