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
- Host: GitHub
- URL: https://github.com/danzigerrr/weather-application
- Owner: Danzigerrr
- Created: 2024-07-16T14:57:38.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-31T09:05:51.000Z (about 1 year ago)
- Last Synced: 2025-01-22T18:34:29.545Z (9 months ago)
- Topics: api, backend, geographic-data, nestjs, nodejs, typescript, weather-app
- Language: HTML
- Homepage: https://weather-application-uj94.onrender.com/
- Size: 601 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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).
## 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).