8000 GitHub - Awerito/react-mantine-template: A template to initialize a repository for React + Mantine with Vite
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Awerito/react-mantine-template

Repository files navigation

React + Mantine Template

GitHub package.json dev/peer/optional dependency version GitHub package.json prod dependency version GitHub package.json prod dependency version GitHub License

This is a template for projects using React and Mantine with JavaScript. It provides a solid, customizable foundation for building modern web applications with ease.

Features

  • React: A popular JavaScript library for building user interfaces.
  • Mantine: A fully featured component library with all the tools you need to build a modern, user-friendly UI quickly.
  • JavaScript (ES6+): Modern JavaScript setup to keep your code efficient and clean.
  • Pre-configured tools: Includes basic configurations for ESLint, Prettier, and other development scripts.
  • Dark Mode Support: Integrated dark mode using Mantine's theming system.

Requirements

Make sure you have the following installed before getting started:

Template Usage

This template provides a basic structure for building React applications with Mantine. You can start by modifying the existing components or creating new ones to build your application.

  1. Click on the Use this template button on the top right of the github repository.
  2. Click on the Create a new repository button.
  3. Clone the new repository to your local machine.

Installation

  1. Install the dependencies:

    Using npm:

    yarn

Available Scripts

In the project directory, you can run the following commands:

yarn dev

Runs the app in development mode. Open http://localhost:5173 to view it in the browser. The app will reload if you make edits.

yarn build

Builds the app for production into the build folder. It optimizes the build for the best performance.

yarn lint

Runs ESLint to check for code style and syntax issues.

yarn preview

Runs the production build locally to preview the app. Open http://localhost:4173 to view it in the browser.

Project Structure

.
├── public/               # Public files (index.html, favicon, etc.)
├── src/
│   ├── assets/           # Static assets like images and fonts
│   ├── components/       # Reusable React components
│   ├── services/         # API services
│   ├── hooks/            # Custom React hooks
│   ├── pages/            # Application pages
│   ├── App.jsx           # Root component
│   └── main.jsx          # Main React entry point
├── eslint.config.js      # ESLint configuration
├── package.json          # Project dependencies and scripts
├── package-lock.json     # Lock file for npm
├── postcss.config.cjs    # PostCSS configuration
├── README.md             # Project information
└── vite.config.js        # Vite configuration

Customization

Feel free to modify the structure, components, and styling according to your needs. Mantine's documentation is an excellent resource for customizing the UI components to fit your project.

About

A template to initialize a repository for React + Mantine with Vite

Topics

Resources

License

Stars

Watchers

Forks

0