Skip to content

Cross-platform app that consumes the user's current location and displays the current address and weather data for the region.

Notifications You must be signed in to change notification settings

rickyalmeidadev/weather-app

Repository files navigation

⛅ Weather App

Cross-platform app that consumes the user's current location and displays the current address and weather data for the region.

Screenshots

Light Mode Dark Mode
Screenshot_1642021588 Screenshot_1642021582

Technologies used

Environment variables

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.

Running locally

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

Running the tests

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

Author

Made with 💛 by Ricky Almeida - E-mail - LinkedIn

About

Cross-platform app that consumes the user's current location and displays the current address and weather data for the region.

Topics

Resources

Stars

Watchers

Forks