Get temperature from API - OpenWeatherMap - Laravel project
- install dependency
composer install
-
create vhost
-
permission
chmod -R 777 storage
chmod -R 777 bootstrap/cache
-
set database config in file .env and .env.testing
-
add OPEN_WEATHER_MAP_KEY to .env and .env.testing. This key you can obtain from: https://openweathermap.org/
-
migrate db
php artisan migrate
- run tests
./vendor/bin/phpunit
Print screen