This is an informative Pokédex viewer built with Next.js. It fetches data from the popular PokéAPI to ensure data is automatically up to date as new games release. Pokémon are split between generation, and data is fetched at compile time, to reduce browser overhead.
The app gives you helpful information about Pokémon and serves as a resource for those who are either looking for information about their favourite Pokémon, or trying to catch 'em all in the newest game.
We follow the PokéAPI fair use policy. We cache resources as much as possible, and request data from GitHub when it exists there. We try to be as respectful to PokéAPI as much as possible with the knowledge that they supply data for countless other sites and apps. Caching is achieved by building the site once per git push. This has the downside of meaning that upon API updates (i.e. when new Pokémon or games release) the build workflow must be run once (either manually or via git push) to reflect on the site.
- prerequisite: install latest Node.js and npm
npm i # install dependencies
npm run build # build to .next/server/app/
npm run serve # run development server