🥳 Really simple React + Ant Design + Tailwind CSS + Typescript + Vite + Mobx boilerplate.

Overview

React-admin-vite

A simple template of react.

OSCS Status

Project introduction

  • 项目是基于 vite 搭建的后台管理系统(react18 版本),所有页面及功能采用函数式组件及 hooks 实现。

  • 项目预览:https://temp.cins.cc

  • 所用技术/UI 框架

    • React Hooks
    • 路由(v6 版本):react-router-dom
    • 全局状态管理:mobx mobx-react-lite
    • 配置了强大的 CSS 工具:tailwindcss
    • UI 框架:antd
    • 国际化:i18next react-i18next
    • Ajax 数据请求:axios
  • 功能实现:(界面设计参照了 antd-pro 的风格)

    • 界面适配:支持 PC 端和==移动端==的响应式布局。
    • 界面风格切换:暗色风格和亮色风格两种。
    • 主题色切换:antd-pro 的 8 种主题色。
    • 国际化:使用 i18n 实现国际化,当前支持中英文两种语言的切换。
    • 配置式路由:基于react-router-dom实现了和vue类似的单独可配置的 router,进行统一的管理。
    • 路由鉴权:封装 Auth 高阶组件,实现登录拦截。
    • axios 封装:基于axios统一处理,实现请求以及响应拦截,全局接口统一管理。
    • token 持久化:封装工具函数使用本地储存实现 token 持久化。
    • mobx 状态管理:以mobx-react-lite 作为链接包,实现数据响应式;按功能拆分 store,实现 mobx 的模块化。

Available Scripts

In the project directory, you can run:

npm run start oryarn start

Runs the app in the development mode.
Open http://localhost:3003 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build or yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can't go back!

If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

You might also like...
Create-React-App + TypeScript + Ant-Design (without Eject)
Create-React-App + TypeScript + Ant-Design (without Eject)

This project was bootstrapped with Create React App. Below you will find some information on how to perform common tasks. You can find the most recent

A project template for Vite + TypeScript + React + Tailwind CSS + Blueprint apps :rocket:

itzmono-vite A project template for Vite + TypeScript + React + Tailwind CSS + Blueprint apps 🚀 Batteries Included ⚡ Vite 2 🛡️ TypeScript 💥 React ?

demo with react,ant-design,redux,react-router,webpack,babel
demo with react,ant-design,redux,react-router,webpack,babel

star-initReact-example A demo with star-initReact-example ##效果截图 首页 列表页 弹框 表格组件 echart 使用技术和实现功能 webpack + React +React-router + React-redux +ES6 + an

react redux for CMS/Enterprise class App/ERP/Admin with ant-design
react redux for CMS/Enterprise class App/ERP/Admin with ant-design

Feature List hot reloading/browser-sync/redux devtools on dev build minify/chunkhash/trackJS on production build eslint both of terminal and pre-commi

Starter Antd 4.0 Admin App  Mern( Node.js / React / Redux / Ant Design ) Crud & Auth , Dashboard
Starter Antd 4.0 Admin App Mern( Node.js / React / Redux / Ant Design ) Crud & Auth , Dashboard

Starter Antd Admin (Crud & auth) Mern App (Express.js / React / Redux / MongoDB) App built for DigitalOcean MongoDB Hackathon CRM Starter Mern Antd Ad

An excellent front-end solution for enterprise applications built upon Ant Design and UmiJS

AntD Admin An excellent front-end solution for enterprise applications. Preview - https://antd-admin.zuiidea.com Documentation - https://doc.antd-admi

Vite-react-template: A starter for React with Typescript with the fast Vite
Vite-react-template: A starter for React with Typescript with the fast Vite

vite-react-template vite + react + router + ts A starter for React with Typescript with the fast Vite directory src assets components layout pages ins

VRT starter (Vite, React, Tailwind CSS)

VRT-Starter (vite, react, tailwindcss) The most lightweight, vanilla template for React, Vite, & Tailwind CSS. It's designed to save you a couple minu

A starter Repo with RainbowKit + Vite + React + Tailwind CSS

🌈 Welcome to the Vite + React + Tailwind CSS + RainbowKit Starter! To install dependencies npm install or yarn install To run the project locally npm

Example repository for integrating Ant Design with ReactPWA project. This repo demonstrates the usage & integration of Ant Design in existing ReactPWA project.

ReactPWA - PawJS & Ant Design Example repository for integrating Ant Design with ReactPWA project. This repo demonstrates the usage & integration of A

Atyantik 15 Jul 11, 2022
Boilerplate - react + tailwindcss + ant-design + typescript

tw-antd-start-react-ts boilerplate - react + tailwindcss + ant-design + typescript Created with reactjs, tailwindcss, ant-design Screenshots Running l

Carlos Henrique 11 Sep 30, 2022
Boilerplate-tailwind - A simple boilerplate using NextJS, Typescript, Tailwind, Jest, Storybook and more

This is a Next.js boilerplate using TailwindCSS and other cool stuff. Most of th

React Avançado 26 Dec 4, 2022
Starter template for Vite with React (TypeScript). Supports Tailwind with CSS-Modules. Jest and @react/testing-library configured and ready to go. Also ESLint, Prettier, Husky, Commit-lint and Atomic Design for components.

Mocking up web app with Vital(speed) Live Demo Features ⚡️ React 17 ?? TypeScript, of course ?? Jest - unitary testing made easy ?? Tailwind with JIT

Josep Vidal 141 Dec 29, 2022
💨 A boilerplate for Vite.js, React TypeScript, & Tailwind CSS

VR2T Boilerplate ?? VR2T [ VR-TT ] stands for Vite - React - TypeScript - Tailwind CSS Installation Choose an option: Download as .ZIP then extract/un

Josh Daniel 4 Nov 25, 2021
A boilerplate generator for VR2T → Vite.js, React TypeScript, & Tailwind CSS.

VR2T Boilerplate Generator ?? VR2T [ VR-TT ] stands for Vite - React - TypeScript - Tailwind CSS Why Use VR2T? Without VR2T, setting up a project woul

Josh Daniel 13 Jul 22, 2022
Create React App boilerplate template with React, Redux Toolkit, React Router, Ant Design, Axios, Redux-Saga, SASS, Authentication, Routes.

Create React App boilerplate template with React, Redux Toolkit, React Router, Ant Design, Axios, Redux-Saga, SASS, Authentication, Routes. No configuration is required, Start building your App.

Nilanth 33 Dec 21, 2022
A React + Redux + Ant-Design frontend boilerplate

react-redux-antd-starter A React + Redux + Ant-Design frontend boilerplate. React Redux Ant-Design React Router React Router Redux Redux Actions Babel

Tianxiao Ma 89 Oct 1, 2021
A boilerplate of SPA, built with React.js, Webpack, ES6+, Redux, Router, Babel, Express, Ant Design...

Getting start Clone this repo: $ git clone https://github.com/jovey-zheng/react-start-kit.git Install dependenices: $ npm i Start the project: $ npm

Jovey Zheng 109 Mar 1, 2022
React Redux Isomorphic Webpack 2 Boilerplate based on ant.design

React Redux Isomorphic Webpack 2 Boilerplate based on ant.design About This boilerplate has following feature: Universal React rendering Webpack 2 for

Suben K. Saha 18 Mar 29, 2022