Skip to content

ankitank25/avrillo-api

Repository files navigation

Laravel Logo

Build Status Total Downloads Latest Stable Version License

Setup

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/

Testing

Feature test

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

Browser test

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.

License

The application is open-sourced software licensed under the MIT license.

Releases

No releases published

Packages

No packages published