This is a boilerplate for any NextJS project that is using typescript. Other stacks used in this boilerplate are the following:
- Prettier
- Eslint
- Husky
- Lint-stage
- TailwindCSS
- NodeJS version 16 and up
- Yarn (preferred)
-
Clone the project
-
Install husky
yarn prepare
-
Install dependencies
yarn
-
Run local development
yarn dev
Include this folders as needed in root. These are preferred folder names but not required.
components
- All the components that are not pages will be under this folder. Create subfolders as needed (eg. layouts, etc)store
- For third party state management storagehooks
- For custom hooks and contextservices
- For api callsutils
- For helper functions