Giter Club home page Giter Club logo

new-poke-hunt's Introduction

POKEHUNT

Application that shows a pokemon according to the current climatic conditions of the chosen city

How to run

You can needed install Docker and docker-compose.

In the project directory, you can run:
docker-compose up -d

Runs the app in the development mode.
Open http://localhost:8080 to view it in the browser.

How it works

After you run the application launch command, a page in your default browser will open. Just type the chosen city in the text box, which will display the local climatic conditions and a pokemon chosen according to the local weather conditions.

Notes: The displayed temperature, along with the climatic condition, is in degrees Celsius.

Pokemon selection criteria

According to the climatic conditions of the city, a Pokémon based on its type (fire, water, wind, electric, etc.) is displayed following the following rules:

  • Places where the temperature is lower (<) than 5° C, an ice pokemon is displayed.
  • Places where the temperature is between (> =) 5°C and (<) 10°C, a water-type pokémon is displayed.
  • Places where the temperature is between 12°C and 15°C, a grass-type pokémon is displayed..
  • Places where the temperature is between 15°C and 21°C, a ground-type pokémon is displayed.
  • Places where the temperature is between 23°C and 27°C, insect-type pokémon (bug) is displayed.
  • Places where the temperature is between 27°C and 33°C inclusive, a rock-type pokémon is displayed.
  • Places where the temperature is higher than 33°C a fire-type pokémon is displayed.
  • For any other temperature, a normal-type pokemon is displayed.
  • And, in case it is raining in the region an electric pokémon (electric) is displayed, regardless of the temperature.

Technologies used

To create this application we used the ReactJs framework, along with the libraries described below:

  • Typescript
  • NextJs
  • Styled-Components: for styling pages and components

Data from the following APIs were consumed:

new-poke-hunt's People

Contributors

stamatogabriel avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.