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