X
Requirements:
- PHP 8.2+
- Docker (via. Laravel Sail)
- Yarn
- Composer
- Install PHP dependencies in the terminal with
composer install
- Create a new .env file by copying the example across in the terminal
cp .env.example .env
- Boot up Sail in the terminal with
./vendor/bin/sail up -d
- Run migrations in the terminal with
./vendor/bin/sail artisan migrate
and create the sqlite db - Run the database seeder in the terminal with
./vendor/bin/sail artisan db:seed
- Install JavaScript dependencies with
./vendor/bin/sail yarn install
- Run frontend server with
./vendor/bin/sail yarn run dev
- Create an application key with
./vendor/bin/sail artisan key:generate
- Create a new application instance in the Vonage API Dashboard
- Download your private key for your new application ID and place it in the root directory of this project.
- Add your application ID to the
VONAGE_APPLICATION_ID
environment variable - Change your
VONAGE_PRIVATE_KEY_PATH
variable to read like this:VONAGE_PRIVATE_KEY_PATH="./private.key"
You now have a SuperUser role that can log in with the email test@test.com
and the password password
.
To create new users, you can register them through an unguarded route (localhost/register
). New users will be assigned the user
role and
can then use the phone number they have entered as their Silent Authentication with SMS one-time password (OTP) as a fallback.
Silent Authentication works within a set list of territories and providers. Please see this page for a complete list.