This application shows the weather in any city that interests you
- Clone app
git clone https://github.com/gregurcom/weather-app.git
- Install all dependence
composer install
npm install
npm run dev
Unit and Feature test
php artisan test
Browser Test
- Set your APP_URL in env. file to:
APP_URL=http://127.0.0.1:8000
php artisan serve
php artisan dusk
- Install deployer:
curl -LO https://deployer.org/deployer.phar
mv deployer.phar /usr/local/bin/dep
chmod +x /usr/local/bin/dep
- Run deploy:
dep deploy production
- Run analysis:
./vendor/bin/phpstan analyse
If you are getting the error Allowed memory size exhausted
, then you can use the --memory-limit option fix the problem:
./vendor/bin/phpstan analyse --memory-limit=2G
- Setting analysis config file:
phpstan.neon
- a configuration file in which you can change the code analysis rules.For more details check phpstan documentation: https://phpstan.org/user-guide/getting-started