I built this application because I wanted to learn more about using React. Specifically, I wanted to learn about using APIs with React.
You can use this application by visiting the app and entering a city and country into the form fields. The application will then return the forecast for that location.
See this application in action at https://agitated-franklin-55a50d.netlify.com/.
This application was built with React and bootstrapped using Create React App. You can learn more about Create React App here: https://github.com/facebook/create-react-app. It also utilizes the OpenWeather API and NPM.
This application is also being hosted with Netlify. Learn more about Netlify at https://www.netlify.com/.
This application utilizes the OpenWeather API. This API is a beginner-friendly tool that can be used to return weather forecasts. You can find the OpenWeather guide here: https://openweathermap.org/guide. The documentation for OpenWeather can be found here: https://openweathermap.org/api.
You can use OpenWeather to pull a variety of weather information including: -Current weather data -5 day/3 hour forecast -16 day/daily forecast
See documentation for more info!
You must have the following installed to run this application: -Node.js/NPM (see: https://www.npmjs.com/get-npm) -React (https://codeburst.io/installing-reactjs-and-creating-your-first-application-d437706498ed)
You can set up and run this app by doing the following:
- Clone Git repository to desktop or desired directory
- Navigate to directory in the terminal
- Run npm install in the terminal *This will install of the required dependencies and packages that are needed for the application to work.
- Run npm start to start the project locally
- Navigate to http://localhost:3000/ in Google Chrome or a browser of your choice.
N/A
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Copyright <2019>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.