npm i
(first time you run the app)npm run dev
mkdir poke-next
cd poke-next
npm init -y
npm i --save react react-dom next
mkdir pages
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
}
npm i --save-dev typescript @types/react @types/node
npm i sass
- API: https://pokeapi.co/
- Colour pallette: https://color.adobe.com/Japan-Dynamic-color-theme-4842572
- Split down components into smaller components (atoms and molecules)
- All the colours and other variables in shared style Sass files (placed in the styles dir)
- Add Jest tests and a minimum test coverage of about 70%-80%
- Enable PWA functionality with service workers
- PWA means that you can also use the app offline and never display the downsaur :-)
- Add a storybook / style guide for references of the colour and components used
- Encapsulate the pagination logic into a custom hook and add more functionality to it
- If the app needs more features (fetching pokemon details etc.), we can consider adding Redux store (with Thunks or Sagas)