An open API service indexing awesome lists of open source software.

https://github.com/danzigerrr/weather-application

A web application that fetches weather by location, built with NestJS
https://github.com/danzigerrr/weather-application

api backend geographic-data nestjs nodejs typescript weather-app

Last synced: 7 months ago
JSON representation

A web application that fetches weather by location, built with NestJS

Awesome Lists containing this project

README

          


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](https://github.com/nestjs/nest),
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](img.png)

## Installation

```bash
$ npm install
```

## Running the app
There are two methods to run the application.
### Console
```bash
# 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.
```bash
docker build -t nestjs-weather-app .
```
Then, run the Docker container using the following command:
```bash
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

```bash
# unit tests
$ npm run test
```

## Stay in touch
Author - Krzysztof Nazar:
- [Linkedin](https://www.linkedin.com/in/krzysztofnazar/)
- [GitHub](https://github.com/Danzigerrr)

## License

Nest is [MIT licensed](LICENSE).