Code Monkey home page Code Monkey logo

mantine-admin's Introduction

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

  • โœณ๏ธ 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
  • ๐ŸŽž๏ธ Framer Motion โ€“ A production-ready motion library for React
  • โœจ 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

Additional Plugins

  • ๐Ÿ—ƒ๏ธ next-compose-plugins โ€“ Provides a cleaner API for enabling and configuring plugins for Next.js
  • ๐ŸŽ‰ Partytown โ€“ Relocate resource intensive third-party scripts off of the main thread and into a web worker

โ–ถ๏ธ 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
# Yarn
$ yarn install

โŒจ๏ธ Development

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

# PNPM
$ pnpm dev
# NPM
$ npm run dev
# Yarn
$ yarn 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
# Yarn
$ yarn build

And then run the build:

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

Lint

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

Lint and Fix

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

Test

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

Type Checking

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

Format

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

Interactive Update Tool

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

Update All Dependencies

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

Release As Major Version

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

Release As Minor Version

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

Release As Patch Version

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

Publish Release

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

Get Updates From Remote and Maintain Current Changes

# PNPM
$ pnpm run pull
# NPM
$ npm run pull
# Yarn
$ yarn 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
# Yarn
$ yarn remove @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/
โ”ƒ โ”ฃ ๐Ÿ“‚ animations/              # Framer Motion Animations **
โ”ƒ โ”ฃ ๐Ÿ“‚ app/                   # App pages
โ”ƒ โ”ฃ ๐Ÿ“‚ components/              # App Components
โ”ƒ โ”ƒ โ”— ๐Ÿ“‚ Motion/                # Mantine-UI + Framer 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
โ”ƒ โ”ƒ โ”ฃ ๐Ÿ“‚ global/
โ”ƒ โ”ƒ โ”ƒ โ”— ๐Ÿ“ƒ api.ts               # AXIOS config
โ”ƒ โ”ƒ โ”— ๐Ÿ“‚ 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!


mantine-admin's People

Contributors

jotyy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.