A simple weather app build using React Native.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You will need node, watchman, and xcode installed on your computer.
# Install prerequisites
$ brew install node
$ brew install watchman
Download and install Xcode from the Mac App Store.
After Xcode is installed, install the Xcode command line tools.
- Open Xcode, then choose "Preferences..." from the Xcode menu. Go to the Locations panel and install the tools by selecting the most recent version in the Command Line Tools dropdown.
# Clone source
$ git clone https://github.com/Greg-Rose/SimpleWeather.git SimpleWeather
$ cd SimpleWeather
# Install React Native CLI
$ npm install -g react-native-cli
# Install dependencies
$ yarn install
or
$ npm install
- Create a free account at https://www.weatherbit.io/account/create
- Get your API Key from your account
- Create a .env file in project root directory
- Add key to .env file:
- WEATHERBIT_API_KEY=YOUR_API_KEY_HERE
# Run app
$ react-native run-ios
View app in simulator window.