This is a Next.js project with RTK (Redux Toolkit), Typescript, Prettier and ESLint (with airbnb style guide) already configured.
- Clone the repository
- Run
rm -rf .git
to delete the git information of the repository - Run
git init
to start a new Git repository - Update the package.json name property
- Run yarn to install dependencies
- Enjoy
The resolver of every folder is @folderName, E.G. @features imports the files in the features folder, don't forget add the export of every file in index.tsx
-
Folder with every React component with their corresponding [componentName].module.scss.
-
Folder with every feature with a RTK slice and feature components slice, as a convention the name of every slice is featureName + Slice suffix, E.G. counterSlice.ts.
In the counterSlice.ts file is a slice example.
-
Folder with the custom react hooks.
-
Folder with every NextJs page.
-
Folder with every RTK Query Api config and queries, is needed just one file per endpoint.
In the pokemonApi.ts file is a service example.
-
Folder with the hooks to wrap a typed useDispatch and useSelector and the store config with RTK Query middleware and reducer added.
-
Folder with the global CSS file
-
Folder with the util functions, add one util per file.