This project is an example that was built along with a Youtube Series showing how to create a Pokedex to show all first 151 pokemons fetched from https://pokeapi.co/ api.
- Create a NextJs project with TypeScript and TailwindCSS
- Load the data from https://pokeapi.co/ api
- Filter the data to reduce the size of data received
- Show a paginated list of data in table
- Show detailed data of each pokemon
- Change Dynamic rendered components to SSG as recommended by NextJS using generateStaticParams
- Improve SEO by using generateMetadata
The easiest way is to watch the video series as it is self-explanatory, but here is a short version.
- Clone the project
- Run npm install to install the dependencies
- Run npx prisma migrate dev --name init to create the dev.db
- Run npm run dev and happy coding!
- In case to see the Staic or SSG pages, simply run npm run build
Since this is an example project, I'd encourage you to clone and rename this project to use to your own purposes. it's a good starter boilerplate.
If you found an issue or would like to submit an improvement to this project, please submit an issue using the issues tab above. If you would like to submit a PR with a fix, reference the issue you created!