Skip to content

A mobile weather app created with React Native using the open weather API.

Notifications You must be signed in to change notification settings

david-mbugua/Weather-App

Repository files navigation

Weather-App

This is a React Native app built using Expo that displays weather information for a specified location. The app uses the OpenWeatherMap API to retrieve the weather information and display it in a user-friendly manner.

It has 3 pages, "City", "Current weather", and "Upcoming weather".

City

The City page shows you some Information about your City. It displays the Country, City, City Population and the sunrise and sunset times.

Current Weather

This page displays an icon of the current weather condition. It shows the Temperature, how it feels like, Highs, and Lows. It also displays different messages depending on the weather condition.

Upcoming Weather

This page shows a 5 day weather forecast. It indicates the weather icon, Date, Time, and the temperature highs and lows.

Getting Started

To run this app on your local machine, follow these steps:

  1. Clone the repository to your local machine.
  2. Install Expo CLI by running npm install -g expo-cli in your terminal.
  3. Install the project dependencies by running npm install.
  4. Create a file named .env in the root directory and add your OpenWeatherMap API key as follows: OPEN_WEATHER_API_KEY=your-api-key.
  5. Start the app with expo start or npm start.
  6. Download the Expo Go mobile App on the App Store or Playstore.
  7. Scan the QR code generated by Expo to launch the app on your mobile device, or open the app on an emulator or simulator.

Scripts

  • start: Starts the app in development mode.
  • android: Builds the app for Android devices.
  • ios: Builds the app for iOS devices.
  • web: Builds the app for web.
  • eject: Removes the Expo wrapper and generates the native code for the app.
  • test: Runs the app's test suite.

About

A mobile weather app created with React Native using the open weather API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published