Skip to content

lucaskbr/api-weather-buddy

Repository files navigation

Welcome to Weather Buddy ☂️

An app that consumes Open Weather Api maps the response and cache the result. Builded with nodejs

ℹ️ How to use the api

git clone https://github.com/lucaskbr/api-weather-buddy.git
cd api-weather-buddy
cp .env .env.example
# Edit the .env and add value to WEATHER_MAP_API_KEY
npm i
# Check tests
npm run test
# Run the app
npm run up:prod
# Docker compose will handle the app

🔥 How to use the front-end interface

git clone https://github.com/lucaskbr/front-weather-buddy.git
yarn
yarn start
# Can use any port to run the app

🔍 Inspect redis data

docker ps
docker exec -it CONTAINER_ID redis-cli
KEYS *
GET key

✈️ Routes

METHOD URI DESCRIPTION
GET /weather/:cityName find weather by city name
GET /weather?max=number find latestes searched cities

🏢 Architecture

The hexagonal architecture, or ports and adapters architecture, is an architectural pattern used in software design.

It aims at creating loosely coupled application components that can be easily connected to their software environment by means of ports and adapters.

This makes components exchangeable at any level and facilitates test automation.

📕 References

👓 Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published