Skip to content

dennisloh95/pokedex

Repository files navigation

Custom Pokedex 👾

A Pokedex list all the pokemon from Pokeapi.co. It also support "add pokemon feature".

Add pokemon feature will make use of browser localstorage. While filling the data, user will need to insert some required data, and it allow user to upload an pokemon image, image will convert to Base64 format so that it can store as a string in localstorage. Some data requirement rules like Pokemon's types & abilities are refer to PokemonWiki.Every creation will record a totalCreated value to define pokemon id, this id can use to display as Pokemon index, as well as handle for edit and delete.

Documentation

Development

Initial Setup

Install all dependencies for React App
npm: npm install
yarn: yarn install

Running App

Running app in development enviroment
npm: npm run dev
yarn: yarn dev

Project Structure

pokedex/
├─ src/
│  ├─ components/
│  ├─ pages/
│  ├─ store/
│  ├─ utils/
│  │  └─ config.ts
│  │  └─ helpers.ts
│  │  └─ hooks.ts
│  │  └─ types.ts
└─ test/
Directory Description
/src/components Main components to supported the app features
/src/pages Frontend Pages
/src/store Global State
/src/utils/config Define config values
/src/utils/helpers Define helpers functions
/src/utils/hooks Define custom hooks
/src/utils/types Define reusable typescript types
/src/test Some Unit testing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages