This project was bootstrapped with Lerna.
- The Project contains 3 packages:
- components
- utils
- pokedex
components
contains reusable React componentsutils
contains utilities for data fetching and interfacespokedex
contains the main functionality of the Next.js projectTypescript
,Redux
andMUI
were used- Data are fetched into the app by using
Fetch
API and are displayed with the@mui/x-data-grid
Jest
Unit Tests were set to run forcomponents
package- For client-side routing, the
next/router
was used Storybook
UI tool was installed in the main project for development, testing, and documentation purposes ofcomponents
package- Basic configurations were done for
Header
,Grid
andPokemon
react components
- Basic configurations were done for
lerna-dockerize
package was installed to generate a dockerfile for lerna projectScreenshots
of the running project and Storybook can be found at/screenshots
- Move any styles into
SCSS
files React Intl
to be set for internationalization and localization purposesConfig
json file can be created to contain applications' configurations for locale and grid options
From the root folder, install all the needed packages with:
`npm i`
In the project directory, you can run:
Installs the dependencies for all of the packages in the repository and links any cross-dependencies
Builds all of the packages in the repository, in parallel
Runs the project on port :3000
Builds a static version of a Storybook instance
Starts the Storybook instance on port :6006
Builds Docker images for the packages in a monorepo managed by Lerna