simple weather app
v.0.0.1
使用PHP,jQuery,Ajax,Bootstrap,CSS和MySQL從API獲取天氣信息的天氣應用程序。

克隆存儲庫:
git clone https://github.com/your-username/simple-weather-app.git
cd simple-weather-app設置數據庫:
weather_app的數據庫。database/database.sql )以設置必要的表。 mysql -u yourusername -p weather_app < database.sql配置應用程序:
config.sample.php to config.php : cp config.sample.php config.phpconfig.php並更新數據庫配置和API密鑰詳細信息。運行應用程序:
php -S localhost:8000訪問應用程序:
http://localhost:8000 。這是您的簡單天氣應用程序的基本文件結構:
simple-weather-app/
│
├── config.sample.php
├── index.html
├── database.sql
├── src/
│ ├── api.php
│ └── fetch_weather.php
├── css/
│ └── styles.css
├── js/
│ └── script.js
├── README.md
└── .gitignore