PHP 8.2.x, composer, Docker needs to be installed.
Clone repostory
git clone https://github.com/ankitank25/avrillo-api
cd ./avrillo-api
Install composer packages
composer install
Copy .env file
cp .env.example .env
Generate app key
php artisan key:generate
Install ChromeDriver
php artisan dusk:chrome-driver
Install node packages
npm install
Open new terminal window and run
npm run dev
Open new terminal window and run docker container
./vendor/bin/sail up
To open browser:
Click: http://127.0.0.1/
Run
php artisan test --testsuite=Feature
Below three tests should be pass.
- listing page successful response
- refresh api successful response
- refresh api limit successful response
Run
php artisan dusk
Below three tests should be pass.
- quote listing page (Screenshot: quote-listing-page.png)
- quote listing refresh button (Screenshot: quote-listing-refresh-button.png)
- quote listing refresh (Screenshot: quote-listing-refresh-before.png, quote-listing-refresh-after.png)
Tests will generate screenshot in ./tests/Browser/screenshots
directory.
The application is open-sourced software licensed under the MIT license.