Skip to content

Danzigerrr/weather-application

Repository files navigation

Weather application Logo

Weather Application

This application is a web-based weather service that allows users to retrieve weather information based on geographic coordinates. It is built using the NestJS framework, which provides a robust and scalable structure for server-side applications.

The application is deployed using Render and can be accessed at https://weather-application-uj94.onrender.com/.

Features

  • Fetch weather data based on latitude and longitude.
  • Handle various input validations and errors gracefully.
  • Display weather information on user-friendly charts.
  • Display current weather information and forecast for the next days (Temperature, Wind speed, Humidity).

img.png

Installation

$ npm install

Running the app

There are two methods to run the application.

Console

# development
$ npm run start

# watch mode
$ npm run start:dev

Docker

First, build the Docker image and add the tag nestjs-weather-app to it.

docker build -t nestjs-weather-app .

Then, run the Docker container using the following command:

docker run --rm -p 3000:3000 nestjs-weather-app

This will start a container from the image and map port 3000 of the container to port 3000 on your local machine. Now you should be able to access the application at http://localhost:3000.

Test

# unit tests
$ npm run test

Stay in touch

Author - Krzysztof Nazar:

License

Nest is MIT licensed.