Deploy your own copy of this template in just a few clicks!
This template have a bunch of folders, code examples and configurations. Feel free to edit or remove them, including this README!
Customize and enjoy!
This project features all the latest tools and good practices in web development!
$ git clone https://github.com/<YOUR-GITHUB-LOGIN>/<NAME-OF-YOUR-GENERATED-REPOSITORY>.gitBefore you can start developing your super application, you need to install the project's dependencies.
Move yourself to the root of the project:
$ cd <NAME-OF-YOUR-GENERATED-REPOSITORY>For the next steps, choose a package manager of your choice and change the commands contained in the
package.jsonscripts. See their documentation for more information:
- PNPM(Recommand)
- NPM
Install all dependencies of the project:
# PNPM
$ pnpm install
# NPM
$ npm installOnce all dependencies have been installed, you can run the local development server:
# PNPM
$ pnpm dev
# NPM
$ npm run devNow just code!
After applying the changes, you can generate a build to test and/or deploy to your production environment.
Make a production build:
# PNPM
$ pnpm build
# NPM
$ npm run buildAnd then run the build:
# PNPM
$ pnpm start
# NPM
$ npm start# PNPM
$ pnpm run lint
# NPM
$ npm run lint# PNPM
$ pnpm run lint:fix
# NPM
$ npm run lint:fix# PNPM
$ pnpm run test # or pnpm run test:watch
# NPM
$ npm run test # or npm run test:watch# PNPM
$ pnpm run type-check
# NPM
$ npm run type-check# PNPM
$ pnpm run format
# NPM
$ npm run format# PNPM
$ pnpm run up
# NPM
$ npm run up# PNPM
$ pnpm run up-latest
# NPM
$ npm run up-latest# PNPM
$ pnpm run release-as-major
# NPM
$ npm run release-as-major# PNPM
$ pnpm run release-as-minor
# NPM
$ npm run release-as-minor# PNPM
$ pnpm run release-as-patch
# NPM
$ npm run release-as-patch# PNPM
$ pnpm run push-release
# NPM
$ npm run push-release# PNPM
$ pnpm run pull
# NPM
$ npm run pullPut the babel.config.js file (located in the path src/scripts) in the project root and delete .babelrc file.
Uncomment the wdyr import line on pages/_app.tsx.
That's it! Now you can monitore React re-renders!
Just delete the babel.config.js and wdyr.ts files, remove wdyr import line on pages/_app.tsx and uninstall it:
# PNPM
$ pnpm uninstall @welldone-software/why-did-you-render
# NPM
$ npm uninstall @welldone-software/why-did-you-renderSee below the file tree to understand the project structure.
Folders and files marked with (
**) are optional, so you can delete then.
mantine-admin/
┣ .github/ # GitHub's folder configs **
┣ .husky/ # Husky's folder
┃ ┣ ? commit-msg # Commitlint git hook
┃ ┗ ? pre-commit # Lint-staged git hook
┣ .vscode/ # VSCode's workspace **
┣ public/ # Public folder
┃ ┣ static/ # Static files folder **
┃ ┃ ┣ icons/ # Icons folder **
┃ ┃ ┣ images/ # Images folder **
┃ ┃ ┣ sounds/ # Sounds folder **
┃ ┃ ┗ videos/ # Videos folder **
┃ ┣ docs/ # Documentation folder **
┃ ┃ ┣ demo/ # Demonstrations project **
┃ ┃ ┗ translations/ # Translations folder **
┃ ┣ ? favicon.ico # Icon tab browser
┣ src/
┃ ┣ app/ # App pages
┃ ┣ components/ # App Components
┃ ┃ ┗ Motion/ # Mantine-UI components **
┃ ┣ hooks/ # React Hooks **
┃ ┃ ┗ ? useFetch.ts # SWR fetch hook (optional) **
┃ ┣ interfaces/ # TypeScript Interfaces
┃ ┣ scripts/ # Additional scripts **
┃ ┃ ┣ ? babel.config.js # Babel config with WDYR **
┃ ┃ ┗ ? wdyr.ts # WDYR file **
┃ ┣ services/ # Services
┃ ┃ ┗ users/
┃ ┃ ┣ ? index.ts # React Query Configuration
┃ ┃ ┗ ? keys.ts # React Query Key
┃ ┣ stores/ # Zustand stores
┃ ┣ styles/ # Styles folder
┃ ┃ ┣ ? bgImages.ts # SVG background images **
┃ ┃ ┗ ? theme.ts # Mantine-UI theme
┃ ┗ utils/ # Useful functions **
┣ ? .babelrc # Default Babel config
┣ ? .editorconfig # Editor config
┣ ? .eslintignore # ESLint ignore
┣ ? .eslintrc # ESLint config
┣ ? .gitignore # Git ignore
┣ ? .versionrc # Versioning config
┣ ? .commitlintrc # Commitlint config
┣ ? jest.config.js # Jest config
┣ ? jest.setup.js # Jest setup
┣ ? LICENSE # License of the project
┣ ? next-env.d.ts # Next.js types to TypeScript
┣ ? next.config.js # Next.js config
┣ ? .prettierrc # Prettier config
┣ ? README.md # Main README
┣ ? renovate.json # Renovate Bot config **
┣ ? tsconfig.json # TypeScript configAlthough you don't have to, if you reuse this template for your projects I would appreciate it if you would credit me and provide a link to my GitHub profile in the footer of your project. Thanks!
This project is licensed under the MIT License - see the LICENSE page for details.