- Laravel 10.x ve Weather API kullanılarak geliştirilmiştir.
- Weather API için OpenWeather kullanılmıştır.
git clone https://github.com/erhanurgun/LARA19-weather-api-ile-hava-durumu.git lara-weather-app
composer install
cp .env.example .env
php artisan key:generate
APP_NAME="Weather API ile Hava Durumu"
APP_URL=http://localhost:8000
APP_TIMEZONE=Europe/Istanbul
APP_LOCALE=tr
APP_FAKER_LOCALE=tr_TR
WEATHER_API_KEY=
WEATHER_API_URL=https://api.openweathermap.org/data/2.5
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
php artisan migrate
php artisan serve
# veya
php artisan serve --host=laravel.test --port=8000
# veya
php -S localhost:8000 -t public
- NOT: Eğer
laravel.test
şeklinde erişmek isterseniz; -
- Windows için
C:\Windows\System32\drivers\etc\hosts
dosyasına127.0.0.1 laravel.test
satırını ekleyin.
- Windows için
-
- Linux için
/etc/hosts
dosyasına127.0.0.1 laravel.test
satırını ekleyin.
- Linux için
-
- Mac için
/private/etc/hosts
dosyasına127.0.0.1 laravel.test
satırını ekleyin.
- Mac için
http://localhost:8000
# veya
http://laravel.test
- Ülke için:
http://laravel.test/weather?lang=en&cityOrCountry=Turkey
- Şehir için:
http://laravel.test/weather?lang=tr&cityOrCountry=Ağrı
- NOT:
lang
parametresi opsiyoneldir. Varsayılan değeritr
dir.
Daha fazla bilgi için bu adresleri ziyaret edebilirsiniz:
forum
| forum.erho.devblog
| erho.devblog
| orizora.com
demo-laravel-weather-api-ile-hava-durumu's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.