{"id":27704455,"url":"https://github.com/alanWongsGithub/vue-weather","last_synced_at":"2025-04-26T01:01:59.118Z","repository":{"id":211947333,"uuid":"89853751","full_name":"l20/vue-weather","owner":"l20","description":"基于vue.js 2.0的天气应用demo","archived":false,"fork":false,"pushed_at":"2017-10-01T12:36:46.000Z","size":8214,"stargazers_count":137,"open_issues_count":1,"forks_count":40,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-19T05:49:17.291Z","etag":null,"topics":["svg","vue","vue-weather"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/l20.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-30T13:54:27.000Z","updated_at":"2025-02-21T08:24:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"92e06638-fc84-4b02-a4cc-b76f16317161","html_url":"https://github.com/l20/vue-weather","commit_stats":null,"previous_names":["l20/vue-weather","alanwongsgithub/vue-weather"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l20%2Fvue-weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l20%2Fvue-weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l20%2Fvue-weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l20%2Fvue-weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/l20","download_url":"https://codeload.github.com/l20/vue-weather/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250917360,"owners_count":21507562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["svg","vue","vue-weather"],"created_at":"2025-04-26T01:01:55.849Z","updated_at":"2025-04-26T01:01:59.110Z","avatar_url":"https://github.com/l20.png","language":"CSS","funding_links":[],"categories":["Demo示例"],"sub_categories":[],"readme":"# vue-weather\n\n\u003e 基于vue.js 2.0的百度天气应用。\n\n# 说明\n\n在看完两遍完官方文档之后仍然感觉云里雾里，知其然不知其所以然。请教了高手之后人家都说学习新东西的最好方法不就是学到了之后就要用么。边学边用，根据项目需要学才是最快上手的，但有没有什么适合新手的项目参考，想了几天打算用vue来仿一个简单的天气应用，于是就出现了这个小应用,巩固所学。项目适合刚学完vue想实践的新手，高手略过吧！\n\n\n\n# 技术栈\n\n* vue2.0\n* vue-router\n* webpack\n* ES6/7\n* Axios\n* less\n* linq.js\n* svg\n\n\n# 运行环境\n\n\u003e nodejs  6.0 稳定版 npm 3.10\n\n### 安装\n\n```\ngit clone https://github.com/alanWongsGithub/vue-weather.git\n\ncd weather/\n\nnpm install\n\n```\n\n### 运行\n```\nnpm run dev\n\n```\n\n### 上线\n```\nnpm run build\n\n将huild之后的vue-weather/目录上传至服务器\n\ncd vue-weather/\n\n//用node启动:\n\nnode server.js\n\n//用pm2管理启动:\n\npm2 start server.js\n\n//用forever管理启动\n\nforever start server.js\n\n```\n\n### [在线演示](http://weather.alphagoo.cn)\n\n# 然后\n\n\u003e 本项目用于刚上手vue 2.0文档想找项目尝尝鲜的coder。\n\n\u003e 由于使用的免费天气API数据过于简单，导致某些功能只能自己实现或者未开发，比如日落日出时间，当然也可以计算自己实现，稍复杂。\n\n\u003e  开发环境为 windows 7 Chrome 57 node 6.10.1。\n\n\n# 实现功能\n\n- [x] 阴历、阳历、天干地支日历\n\n- [x] 空气质量、当前天气温度风力风级、当前天气提示\n\n- [x] 未来24小时预报，预报数据API未提供这里为模拟数据\n\n- [x] 摄氏温度和华氏温度转换。\n\n- [x] 未来四天天气预报 、SVG贝塞尔曲线绘制\n\n- [x] 自动IP定位当前城市设置天气，全国县级以上城市检索设置。这里获取的全国城市城市数据为饿了么数据。\n\n\n\n## 效果截屏\n\n#### 主界面\n\n![home](https://github.com/alanWongsGithub/vue-weather/blob/master/screen/home.gif)\n\n![loading](https://img.alicdn.com/imgextra/i4/690341282/TB2PwL0rm0jpuFjy0FlXXc0bpXa_!!690341282.gif)\n\n#### 界面功能\n\n![home](https://github.com/alanWongsGithub/vue-weather/blob/master/screen/homeoperation.gif)\n\n#### 城市列表\n\n![home](https://github.com/alanWongsGithub/vue-weather/blob/master/screen/citylist.gif)\n\n#### 城市列表选择设置\n\n![home](https://github.com/alanWongsGithub/vue-weather/blob/master/screen/citylistset.gif)\n\n#### 八种纯CSS天气图标\n\n![home](https://github.com/alanWongsGithub/vue-weather/blob/master/screen/sunny.gif) ![home](https://github.com/alanWongsGithub/vue-weather/blob/master/screen/cloudy.gif)![home](https://github.com/alanWongsGithub/vue-weather/blob/master/screen/rainy.gif) ![home](https://github.com/alanWongsGithub/vue-weather/blob/master/screen/rainbow.gif)![home](https://github.com/alanWongsGithub/vue-weather/blob/master/screen/starry.gif) ![home](https://github.com/alanWongsGithub/vue-weather/blob/master/screen/stormy.gif)![home](https://github.com/alanWongsGithub/vue-weather/blob/master/screen/snowy.gif) ![home](https://github.com/alanWongsGithub/vue-weather/blob/master/screen/cloudy2sunny.gif)\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FalanWongsGithub%2Fvue-weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FalanWongsGithub%2Fvue-weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FalanWongsGithub%2Fvue-weather/lists"}