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/.
- 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).
$ npm install
There are two methods to run the application.
# development
$ npm run start
# watch mode
$ npm run start:dev
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.
# unit tests
$ npm run test
Author - Krzysztof Nazar:
Nest is MIT licensed.