Laravel 8.x project.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
This is a Laravel 8.x project, so you must meet its requirements.
Clone the project
git clone https://github.com/stevensgsp/order-checkout-site.git
cd order-checkout-site
composer install
cp .env.example .env
php artisan key:generate
Edit .env and put credentials, indicate environment, url and other settings.
DB_CONNECTION=
DB_HOST=
DB_PORT=
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
PLACETOPAY_URL=
PLACETOPAY_LOGIN=
PLACETOPAY_TRANKEY=
Run migrations and seeders
php artisan migrate --seed
You may run them using phpunit
:
./vendor/bin/phpunit
In addition to the phpunit
command, you may use the test
Artisan command to run your tests. The Artisan test runner provides verbose test reports in order to ease development and debugging:
php artisan test
If you want to generate a code coverage report in HTML format, you may pass the --coverage-html
phpunit command-line option.
php artisan test --coverage-html ..\coverage