Skip to content

A quick 1 day build weatherApp for an interview, built with Openweather API for current weather and 3 hourly forecast. Updated version.

Notifications You must be signed in to change notification settings

bauertim/weatherAppTs

Repository files navigation

Simple Weather App

A simple React weather app showing current weather in a city and the 3 hourly forecast. All the data is from OpenWeather API and Google Cloud API is used for input autocomplete. It is designed mobile first with tailwindcss.

Follow these steps to set up the project locally on your machine.

Prerequisites

Make sure you have the following installed on your machine:

Cloning the Repository

git clone https://github.com/bauertim/weatherApp.git
cd weatherApp

Installation

Install the project dependencies using npm:

npm install

Set Up Environment Variables

Create a new file named .env in the root of your project and add the following content:

VITE_OPENWEATHER_API_KEY=
VITE_GOOGLE_API_KEY=

Replace the placeholder values with your actual OpenWeather and Google Cloud API keys. Using google autocomplete is optional, you can use the commented form in the InputField component of the app.

Running the Project

npm run dev

About

A quick 1 day build weatherApp for an interview, built with Openweather API for current weather and 3 hourly forecast. Updated version.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published