Skip to content

resolutionlife/weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App

Overview

Build a weather dashboard application using React and TypeScript. Users should be able to search for cities and view the city's current weather conditions using the OpenWeather API.

Interview Format

This is a collaborative exercise. We encourage you to:

  • Think aloud and share your reasoning
  • Ask questions if anything is unclear
  • Discuss your UI/UX decisions
  • Talk through technical tradeoffs you're considering

Remember: We're more interested in your problem-solving approach than a perfect solution. A partially complete solution with good communication is better than a complete solution without explanation.

Getting Started

This project uses Create React App with TypeScript. To begin:

# Using npm
npm install
npm start

# Using yarn
yarn
yarn start

The Task

Create an interface where users can:

  • Search for cities by name
  • View current weather data for their selected cities

API Integration

The application should fetch weather data from the OpenWeather API:

GET https://api.openweathermap.org/data/2.5/weather?q=${cityName}&appid=${API_KEY}&units=metric

You should be provided the API key by your interviewer.

Example API Response

{
	"coord": {
		"lon": 2.3488,
		"lat": 48.8534
	},
	"weather": [
		{
			"id": 804,
			"main": "Clouds",
			"description": "overcast clouds",
			"icon": "04d"
		}
	],
	"base": "stations",
	"main": {
		"temp": 9.57,
		"feels_like": 5.63,
		"temp_min": 8.89,
		"temp_max": 10,
		"pressure": 995,
		"humidity": 93
	},
	"visibility": 10000,
	"wind": {
		"speed": 5.14,
		"deg": 300
	},
	"clouds": {
		"all": 90
	},
	"dt": 1612177860,
	"sys": {
		"type": 1,
		"id": 6550,
		"country": "FR",
		"sunrise": 1612164041,
		"sunset": 1612198057
	},
	"timezone": 3600,
	"id": 2988507,
	"name": "Paris",
	"cod": 200
}

Example Output

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •