diff --git a/README.md b/README.md index a4384f06..6a63d248 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,8 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo ## Available Scripts In the project directory, you can run: +### `npm install` +After cloning git hub repository, run "npm install" to install required dependencies ### `npm start` @@ -52,57 +54,8 @@ Open [http://localhost:3000](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. -### `npm test` +*** `API KEY` -Launches the test runner in the interactive watch mode.
-See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. - -### `npm run build` - -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](https://facebook.github.io/create-react-app/docs/deployment) for more information. - -### `npm run eject` - -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** - -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. - -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. - -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. - -## Learn More - -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). - -To learn React, check out the [React documentation](https://reactjs.org/). - -### Code Splitting - -This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting - -### Analyzing the Bundle Size - -This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size - -### Making a Progressive Web App - -This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app - -### Advanced Configuration - -This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration - -### Deployment - -This section has moved here: https://facebook.github.io/create-react-app/docs/deployment - -### `npm run build` fails to minify - -This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify +For this app to work, an API key from open weahter is required. +To get your personal API key, register here at https://home.openweathermap.org/users/sign_up +When you got your key, copy and past it into App.js file (src/App.js) at line 21 "apiKey = ' YOU API KEY ';" diff --git a/package-lock.json b/package-lock.json index bd2a44be..cdfaa395 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1090,6 +1090,14 @@ "@fortawesome/fontawesome-common-types": "^0.2.28" } }, + "@fortawesome/free-regular-svg-icons": { + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-5.13.0.tgz", + "integrity": "sha512-70FAyiS5j+ANYD4dh9NGowTorNDnyvQHHpCM7FpnF7GxtDjBUCKdrFqCPzesEIpNDFNd+La3vex+jDk4nnUfpA==", + "requires": { + "@fortawesome/fontawesome-common-types": "^0.2.28" + } + }, "@fortawesome/free-solid-svg-icons": { "version": "5.13.0", "resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.13.0.tgz", diff --git a/package.json b/package.json index f134acd0..32ca1b67 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "private": true, "dependencies": { "@fortawesome/fontawesome-svg-core": "^1.2.28", + "@fortawesome/free-regular-svg-icons": "^5.13.0", "@fortawesome/free-solid-svg-icons": "^5.13.0", "@fortawesome/react-fontawesome": "^0.1.9", "@testing-library/jest-dom": "^4.2.4", diff --git a/src/App.js b/src/App.js index f5e1eb48..764aaff2 100644 --- a/src/App.js +++ b/src/App.js @@ -6,6 +6,7 @@ import Loading from './components/Loading/Loading'; //import Forecast from './components/Forecast'; import FiveDayForecast from './components/FiveDayForecast/FiveDayForecast'; import DayForecast from './components/DayForecast/DayForecast'; +import DayGraph from './components/DayGraph/DayGraph' import MainTemperatureDisplay from './components/MainTemperatureDisplay/MainTemperatureDisplay'; import Wind from './components/Wind/Wind'; import SunAndMoon from './components/SunAndMoon/SunAndMoon'; @@ -17,7 +18,7 @@ import LocationInput from './components/LocationInput/LocationInput'; import './App.css'; class App extends Component { - apiKey = '47191cd2411b39bd47c91b1dfe204dd6'; + apiKey = ''; city = ''; constructor() {