Skip to content

BrunoSobralDEV/weather-pokeapi

Repository files navigation

OpenWeather&PokeAPI


printscreen-mobile

📌 Table of Contents


🏠 About

Challenge: In an HTML page it must be possible to inform a city from anywhere in the world. Then, according to the weather conditions of this city, you must display a Pokémon based on its type (fire, water, electric, etc.)

  • Places where the temperature is lower (<) than 5ºC, an ice pokémon must be returned.
  • Places where the temperature is between (>=) 5ºC and (<) 10ºC, a water type pokémon must be returned.
  • Places where the temperature is between (>=) 12ºC and (<) 15ºC, a grass type pokémon must be returned.
  • Places where the temperature is between (>=) 15ºC and (<) 21ºC, a ground type pokémon must be returned.
  • Places where the temperature is between (>=) 23ºC and (<) 27ºC, an insect type pokémon must be returned.
  • Places where the temperature is between (>=) 27ºC and 33ºC inclusive, a rock type pokémon must be returned.
  • Places where the temperature is greater than 33ºC, a fire type pokémon must be returned.

For any other temperature, you must return a normal type pokémon. And, in the event that it is raining in the region, an electric pokémon must be returned, regardless of the temperature.

For more details:


🎯 Installation

First you need to install:

  • Node.js (required)

    Then in order, clone the project.

By HTTPS, running this command:

  git clone https://github.com/BrunoSobralDEV/weather-pokeapi.git

Or by ssh, running this command:

  git@github.com:BrunoSobralDEV/weather-pokeapi.git

SSH is a secure protocol, but you need to register a key ssh in your github before.

🛠️ Install dependencies

  npm install

🚀 Getting Started

  npm run dev

💻 Techs

Front-End

HTML5 CSS3 TypeScript React.Js TailwindCss

Back-End

OpenWeather PokeAPI

Testes

Cypress : in the near future;


🤝 Contributing

Contributions, issues and feature requests are welcome! Feel free to file a new issue on the Weather-pokeapi repository. If you already found a solution to your problem, I would love to review your pull request!


📜 License