Cross-platform app that consumes the user's current location and displays the current address and weather data for the region.
Light Mode | Dark Mode |
---|---|
To run this project, you will need to add the following environment variable to the .env
file:
OPEN_WEATHER_KEY=your-open-weather-key
Visit the Open Weather how to start to create an account and get your key.
Clone the project:
git clone https://github.com/rickyalmeidadev/weather-app.git
Enter the project directory:
cd weather-app
Install dependencies:
yarn install
Start the Expo server:
yarn start
Then the browser will automatically open at the address http://localhost:19002 where you can scan the QRCode and run the app on your own device. You can also scan the QRCode from the terminal if you prefer.
Make sure you have Expo Client on your device, you can get it from Play Store or App Store.
If you have an Android emulator or iOS simulator and want to use it, you can use the commands:
yarn android
# or
yarn ios
To run the tests, run the following command:
yarn test
In order to see the coverage report, you can run:
yarn test:coverage
You can also run the tests in watch mode:
yarn test:watch