PokeApp Made with Vue.js

PokeApp Made with Vue.js

Vuejs-poke-api PokeApp Made with Vue.js

Poke-App made with Vue.js

1. Development environment


2. Directory

├── api                              
├── components                         
    └── common 
├── router
├── views   
└── store   

3. Component composition

Main / poke list


scrap list


not found



Pokemon search component

function: search

Menu component

function: page movement


Pokemon list component

function: page load (Pokemon list, scrap list)


Pokemon-specific component

functions exposed to the Pokemon list : data exposure, scrap


Pokemon detailed information component

function: data exposure


Validity check during search, Modal use for detailed information exposure

4. Page composition

  • list: Pokemon list exposure
  • scrap: expose scrap list
  • else: expose 404 not found page

5. localStorage

SHOW SCRAP LIST To reduce API communication, save id and name in localStorage

Classification value scraplist.id

Before modification

  • When loading the scrap list by storing only the id, api communication was attempted to expose only the scraped contents, but ex) a problem occurred in which api communication had to be performed several times for the Pokemon with id = 100

After modification

  • It is determined that there is no need for api communication for scrap because the values ​​fetched during list API communication are id and name. Save the id and name and extract the list from localstorage to avoid unnecessary API communication and expose the scrap contents in the order set by the user.

localStorage structure


6. Function

1. page load

  • As the user scrolls, api communicates to bring up the list of the next page.
  • In case of scrap list, data is loaded from localStorage
  • In case of Pokemon list, data is loaded through external API communication
  • When clicking the Pokemon image, related Pokemon information is displayed in the Pokemon details modal window.
  • When loading the same scrap and Pokemon list, limit = 20 unified
  • => I tried to expose the background color for each type in the list, but it was determined that additional api communication for each Pokemon was unnecessary to extract only the type value, so the background color was exposed only in detailed information.
  • When searching for numbers, related Pokemon information Pokemon details are exposed in the modal window
  • Exposing error contents in modal window as a result of validation
  • Whether to be empty, 0, or numeric

3. Pokemon details

  • Exposing detailed information in modal window
  • Exposure data
  • Image, name, ID, height, weight
  • Exposure of background color suitable for each type of Pokemon

4. Scrap

  • Heart-shaped scrap function exposed in Pokemon list
  • Scraped Pokemon: red
  • Unscraped Pokemon: black
  • Click Scrap <-> !Change Scrap

5. List

  • Poke List: Pokemon list exposure
  • Scrap List: Exposing scrap list

7. Results screen

Main screen and Pokemon list page screen


Scrap list page screen


404 not found page screen

not found

Pokemon detailed information result screen-Background color is exposed differently according to Pokemon type


PokeDetail5 PokeDetail2 PokeDetail3 PokeDetail4

Validity check result screen when searching-Using modal window




+) add


Download Details:

Author: jhyounyaho

Source Code: https://github.com/jhyounyaho/Vuejs-poke-api

vue vuejs javascript

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

8 Popular Websites That Use The Vue.JS Framework

In this article, we are going to list out the most popular websites using Vue JS as their frontend framework. Vue JS is one of those elite progressive JavaScript frameworks that has huge demand in the web development industry. Many popular websites are developed using Vue in their frontend development because of its imperative features.

Vue Native is a framework to build cross platform native mobile apps using JavaScript

Vue Native is a framework to build cross platform native mobile apps using JavaScript. It is a wrapper around the APIs of React Native. So, with Vue Native, you can do everything that you can do with React Native. With Vue Native, you get

How to Make a Simple Vue Custom Select Component

In this article, you’ll learn how to build a Vue custom select component that can be easily be styled using your own CSS. In fact, it’s the same component that we use in production on Qvault, and you can see it in action on the playground.

Creating a Custom Tooltip Component in Vue

There are plenty of libraries out there that will have you up and running with a good tooltip solution in minutes. However, if you are like me, you are sick and tired of giant dependency trees that have the distinct possibility of breaking at any time.

Vue ShortKey plugin for Vue.js

Vue-ShortKey - The ultimate shortcut plugin to improve the UX .Vue-ShortKey - plugin for VueJS 2.x accepts shortcuts globaly and in a single listener.