A React/Redux SPA to display the current weather conditions based on your geolocation.
You will need to sign up for the free account here and get your API key.
Clone the repository GraphQL Weather API, create an .env
file containing your OpenWeatherMap key (format: KEY=api-key-here
), and run npm install && npm run dev
to start the wrapper app.
Test your access to http://localhost:4000
and make sure it's working!
This App uses a free Reverse Geocoding to City API from BigDataCloud, but no API key is required.
**If you are running the graphql-weather-api
on a different ip/port, open the file constants.ts
and update the URL variable accordingly.
Clone the repository to your machine and run:
Installs all dependencies required to run the app locally.
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.
Clone the repository to your machine and run:
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.