Yarn is used as the package manager in this template, but you can use npm (or any other package manager) if you need to as all dependencies are included in the package.json file.
- NextJS
- Typescript
- ESLint
- Prettier
- Jest
- SWR
- CORS
- tailwindcss
- js-cookie
- next-sitemap
and their dependencies.
dev: Run the development serverprebuild: Run jest testsbuild: Build the applicationpostbuild: Run next-sitemap to generate sitemap and robots.txtstart: Run the production serverlint: Run ESLintexport: Export the application to static HTMLtest: Run Jest teststest:ci: Run Jest tests in CI mode
- The
__tests__folder is used for Jest tests. - The
componentsfolder is used for components in the application. - The
libfolder is used for utility functions and other code that is not a component (including, but not limited to, methods for updating your database, constant variables, middleware, etc.). - The
pagesfolder is used for pages in the application. - The
pages/apifolder is used for API routes. - The
publicfolder is used for static assets that are not imported in the application. - The
stylesfolder is used for global styles and style modules. - The
utilfolder is used for utility functions and other code that is not a component.
All necessary configuration files are included in the template and can be modified as needed.