I've created this simple weather app to learn React.
The sandbox will be launched with npm run install && npm run start
. The JSON file src/mock_data.json
is used
as data source, which is a production copy.
If you'd like to launch the application in production mode, follow these steps:
- Get a LocationIQ API key (https://locationiq.com/)
- Get a OpenWeather API key (https://openweathermap.org/api)
- Copy the .env.example file and paste it in .env
- Fill in REACT_APP_LOCATION_IQ_KEY and REACT_APP_OPENWEATHERMAP_KEY
- Run
npm run production
- Run
serve -s build
. No serve installed? Runnpm install -g serve
first.