Pokédex built with React and PokéAPI, infinite scrolling of pokemon cards implemented using Intersection Observer API.
View Demo
- Pokemon Data from PokéAPI
- UI components with React.js
- State management using React's Context-API
- Styling with Sass
- Bundling with webpack
- Linting with ESLint
- Code formatting with Prettier
Steps to run Pokédex in your local environment.
-
Clone the repository
git clone https://github.com/shanpriyan/pokedex.git
-
Go to the project directory
cd pokedex
-
Install the NPM packages
npm i
-
Start the development server
npm start
-
Development server will start at
localhost:1998
This project is configured with ESLint for linting in .eslintrc.json
. You can use npm run lint
script to check for errors or warnings in the project.
This project uses Prettier for formatting. You can use npm run prettify
script to format all files in the project.
This project uses webpack for bundling.
- Run
npm run build
script to generate a production build - Run
npm run build:dev
script to generate a development build. - Build will output to
dist
folder.
- Run
npm run analyze
to analyze the production bundle of the application using webpack-bundle-analyzer
This project is configured with new runtime JSX transform. React doesn't need to be in scope while using JSX.
Live Demo - https://pokedex.shanpriyan.in/