Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokemon poke who?

A small side-project to test Next.js with the aim of getting a very quick and snappy user experience (faster than React). Uses Static Generation, both getStaticProps() and getStaticPaths(), optimized .webp images, inline fonts and other tricks for optimization.

Features

Contains a listing of Pokemons that can be sorted by clicking on the column header. When clicking the name of a Pokemon, a detailed view of the Pokemon is shown.

The production build is currently hosted on the Amazon CloudFront CDN at https://www.spinningowl.com/portfolio/pokemon-poke-who/. In October 2022 it scores a perfect 100 of 100 on Google PageSpeed Insights for desktop.

Install packages

yarn install

Populate data

yarn populate

Downloads json and images from an external data source to the public folder. Creates thumbnails.

Standard scripts from Create Next App

yarn dev
yarn build
yarn export
yarn start
yarn lint

To be able to host the production build in a subfolder, a basepath of "/portfolio/pokemon-poke-who" is used so when testing with 'yarn dev' or 'yarn start', use the following url: http://localhost:3000/portfolio/pokemon-poke-who

About

A small side-project to test Next.js performance using static site generation.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages