Git Product home page Git Product logo

weather-app's Introduction


Midterm Project

weather APP


簡介

簡易的天氣查詢APP  

 

使用

  • 在螢幕上的搜尋欄輸入想查詢的城市名稱後按下enter或是點擊旁邊的search button 即可查詢  

使用的框架

  • 前端就是純React, 配合server開出的API去 fetch data後把天氣資訊呈現出來。
  • 後端server的部份,串接了mapbox和darksky這兩個API 利用request取得天氣資訊 並利用get傳出。  

我的貢獻

mapbox 和 darksky API的串接是在網路上找到簡易的示範並照著做,但他是用callback function 去寫,看起來真的有點討厭XD。剛好那時候老師要我們上網學promise/async/await,於是就把它改成async await的形式了。 但 request 似乎不支援promise的用法,查了一下發現有利用"request-promise"這個module就可以用promise改寫request。

心得

四月到五月初都在忙別的事情...而且對於後端還有前後端串接的概念真的幾乎是0...QQ 所以完全沒辦法做出跟其他同學們一樣有趣的東西...只能寫出這樣超陽春的APP...期末要加油了... 但是還是學到了前後端最簡單的串接(利用create-react-app)還有簡單的API串接。 web programming真的博大精深...期末真的要加油

weather-app's People

Contributors

jason0829ya avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.