Simple weather app based on frontend challenge by devchallenges.io. The API used for getting the weather data is OpenWeatherMap.
- Install dependencies:
yarn install
- Run in development modd:
yarn start
- Create production build:
yarn build
Include the following varibles in the .env
file:
NODE_PATH = ./src
REACT_APP_API_URL = http://localhost:YOUR_SERVER_PORT
REACT_APP_MAPS_API_KEY = YOUR_MAPS_API_KEY
REACT_APP_API_ONECALL = https://api.openweathermap.org/data/2.5/onecall?appid=YOUR_OPENWEATHER_API_KEY&units=metric
REACT_APP_API_REVERSE = https://api.openweathermap.org/geo/1.0/reverse?appid=YOUR_OPENWEATHER_API_KEY&limit=1
- For development mode is necessary to run the API in a separate server.
- The Google Maps platform API key must have the
Maps Javascript
andPlaces
APIs enabled.