Please find the working app at https://palakkeni5.github.io/Weather-App/
This was app created in React using create-react-app.
The app uses the following libraries
- Axios for consuming REST API
- Weather data used from Open Weather API : Current Weather Data and 3-hour Forecast 5 days
- Location data used from 2 sources : Internal Javascript browser data and map data from React Leaflet
- Ant Design is used for the app theme
- Recharts.js is used for Graphs in the app.
- gh-pages is used to deploy the app.
Integration of the app with Electron.js can be found in the current repository branch app/electron.js. The app can be built to natively run as desktop application in Mac, Windows and Linux.
- Clone the app
- Create a .env file in the base of the folder
- Create an account at Open Weather API
- edit .env file : REACT_APP_WEATHER_API_KEY=YOUR_API_KEY
- run
npm start
to run the project locally.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
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!