Skip to content

lennca/simple-weather-app

Repository files navigation

Simple Weather Application

About

This is a simple weather application fetching data from Open Weather Map.

The application is built using React on the client-side and Node.js + Express for the server-side part of the application.

API: Open Weather Map

Getting Started

Prerequisites

Make sure to have the following installed:

Installation

  1. Sign up and get a free API Key at Open Weather Map
  2. Clone the repo
git clone https://github.com/Lennca/SimpleWeatherApp.git
  1. Install NPM packages
npm install
  1. Create and enter your API-key in the .env in the directory /backend
WEATHER_API_KEY=<YOUR_API_KEY>
  1. Start the application
npm start

Deploy (using Docker)

Prerequisites

Make sure to have the following installed:

Environment Variables

Build, run, and deploy containers

  1. Sign up and get a free API Key at Open Weather Map
  2. Clone the repo
git clone https://github.com/Lennca/SimpleWeatherApp.git
  1. Replace <API-KEY> under services -> backend -> environment in the docker-compose.yml-file
  2. Build images and start containers
docker-compose up -d
  1. Verify that the containers are up
docker ps
  1. Application is now up and running at localhost on port 3000

Usage

The application can display the degrees in Celsius (metric) and Fahrenheit (imperial).

The application display the data:

  • Degrees
  • Location
  • Feel like temperature
  • Description of weather
  • Location (latitude and longitude)
  • Wind-speed
  • Wind-direction

Screenshots

Screenshot of demo app in desktop-view Screenshot of demo app in mobile-view

License

Distributed under the MIT License. See LICENSE for more information.

About

Simple React weather app fetching from api.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •