therrance / weather-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weather App

Backend

The backend of the Weather App is implemented in Node.js using Express. It provides an endpoint to fetch weather information for a given city using the OpenWeatherMap API.

Setup

  • Install dependencies: npm install
  • Run in development mode: npm run dev
  • Build for production: npm run build
  • Start in production: npm start

API Endpoint

  • GET /weather/:city: Fetches current weather information for the specified city.

Environment Variables

  • OPENWEATHERMAP_API_KEY: API key for OpenWeatherMap.

Frontend

The frontend of the Weather App is implemented in React using Vite. It allows users to input a city name and displays the current weather information for that city.

Setup

  • Install dependencies: npm install
  • Start the development server: npm run dev
  • Build for production: npm run build

About


Languages

Language:TypeScript 49.1%Language:CSS 35.0%Language:JavaScript 8.6%Language:HTML 7.3%