Skip to content

game-node-app/game-node-admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Mantine Admin

Mantine Admin Banner

πŸ’» A Modern Dashboard with Next.js.!


License MIT
Open Source Made with TypeScript Built with Love
Powered by Vercel


Bugs Maintainability Rating Quality Gate Status Reliability Rating Security Rating Vulnerabilities Renovate


πŸš€ Demo β†’

Deploy your own copy of this template in just a few clicks!

Deploy to Vercel

πŸ“– Introduction

This template have a bunch of folders, code examples and configurations. Feel free to edit or remove them, including this README!

Customize and enjoy!

🌟 Features

This project features all the latest tools and good practices in web development!

Framework

  • βš›οΈ Next.js – A complete React framework for hybrid and server rendering

Data Fetching

  • 🌴 ky - Tiny and elegant HTTP client based on the browser Fetch API
  • ✳️ React Query – Hooks for fetching, caching and updating asynchronous data in React

State Management and Hooks

  • 🐻 Zustand – A small, fast and scalable bearbones state-management solution using simplified flux principles
  • πŸ‘ react-use – Collection of essential React Hooks

Design System and Animations

  • 🎨 Mantine-UI – A simple, modular and accessible component library that gives you the building blocks to build your React applications
  • ✨ Tabler Icons – A collection of popular icons to React projects

Form Validation

  • πŸ“‹ React Hook Form – Performant, flexible and extensible forms with easy-to-use validation
  • 🚨 Zod – TypeScript-first schema validation with static type inference

Tests

  • πŸƒ Jest – A delightful JavaScript Testing Framework with a focus on simplicity
  • πŸ™ Testing Library – Simple and complete testing utilities that encourage good testing practices

Design Patterns

  • β›” ESLint – Find and fix problems in your JavaScript code
  • πŸŽ€ Prettier – An opinionated code formatter, supporting multiple languages and code editors
  • 🐺 Husky – Modern native Git hooks made easy
  • πŸ’© lint-staged – Run linters against staged git files and don't let πŸ’© slip into your code base
  • πŸ““ commitlint – Helps your team adhering to a commit convention
  • 🏷️ Standard Version – A utility for versioning using semver and CHANGELOG generation powered by Conventional Commits

Analysis

  • πŸ•΅πŸ»β€β™‚οΈ why-did-you-render (optional) – Notify you about potentially avoidable re-renders

▢️ Getting Started

πŸ“™ Creating a New Repository on GitHub

  1. Click on "Use this template" button
  2. Configure your new repository and click on "Create repository from template" button
  3. Now you can clone the generated repository to your local machine:
 $ git clone https://github.com/<YOUR-GITHUB-LOGIN>/<NAME-OF-YOUR-GENERATED-REPOSITORY>.git

πŸ› οΈ Installation

Before 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.json scripts. See their documentation for more information:

Install all dependencies of the project:

# PNPM
$ pnpm install
# NPM
$ npm install

⌨️ Development

Once all dependencies have been installed, you can run the local development server:

# PNPM
$ pnpm dev
# NPM
$ npm run dev

Now just code!

πŸ–₯️ Production

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 build

And then run the build:

# PNPM
$ pnpm start
# NPM
$ npm start
View more commands you can use

Lint

# PNPM
$ pnpm run lint
# NPM
$ npm run lint

Lint and Fix

# PNPM
$ pnpm run lint:fix
# NPM
$ npm run lint:fix

Test

# PNPM
$ pnpm run test # or pnpm run test:watch
# NPM
$ npm run test # or npm run test:watch

Type Checking

# PNPM
$ pnpm run type-check
# NPM
$ npm run type-check

Format

# PNPM
$ pnpm run format
# NPM
$ npm run format

Interactive Update Tool

# PNPM
$ pnpm run up
# NPM
$ npm run up

Update All Dependencies

# PNPM
$ pnpm run up-latest
# NPM
$ npm run up-latest

Release As Major Version

# PNPM
$ pnpm run release-as-major
# NPM
$ npm run release-as-major

Release As Minor Version

# PNPM
$ pnpm run release-as-minor
# NPM
$ npm run release-as-minor

Release As Patch Version

# PNPM
$ pnpm run release-as-patch
# NPM
$ npm run release-as-patch

Publish Release

# PNPM
$ pnpm run push-release
# NPM
$ npm run push-release

Get Updates From Remote and Maintain Current Changes

# PNPM
$ pnpm run pull
# NPM
$ npm run pull

βš™οΈ Extra Configurations

Why Did You Render

How to Activate

Put 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!

How to Uninstall

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-render

πŸ“ File Tree

See below the file tree to understand the project structure.

View file tree

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 config

πŸ“œ License

Although 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.


⭐ Give a star to maintain this project!

❀️ Thanks for your attention!

πŸ‘¨β€πŸ’» Good Hacking!