Ei kuvausta

linyuanjie 1cf8883c65 feat(custom): 增加mock功能 3 kuukautta sitten
.husky 990e4a8000 chore(custom): 构建配置升级 3 kuukautta sitten
.vscode 80bb812c14 chore(custom): 构建工具提交 3 kuukautta sitten
public 80bb812c14 chore(custom): 构建工具提交 3 kuukautta sitten
src 1cf8883c65 feat(custom): 增加mock功能 3 kuukautta sitten
types a5e5d40b5b 完成功能:1.登录页 2.路由权限配置 3.菜单 4.用户管理页 5.设置功能汉化 4 kuukautta sitten
.cz-config.cjs 1cf8883c65 feat(custom): 增加mock功能 3 kuukautta sitten
.env 81c875ad3c Init 4 kuukautta sitten
.env.development 81c875ad3c Init 4 kuukautta sitten
.env.production a3d9c3cb26 chore(custom): 构建体系搭建 3 kuukautta sitten
.eslintignore 6b921092b8 init 4 kuukautta sitten
.eslintrc.json 6b921092b8 init 4 kuukautta sitten
.gitignore 6b921092b8 init 4 kuukautta sitten
.prettierignore 6b921092b8 init 4 kuukautta sitten
.prettierrc.cjs 6b921092b8 init 4 kuukautta sitten
LICENSE 6b921092b8 init 4 kuukautta sitten
README.md 80bb812c14 chore(custom): 构建工具提交 3 kuukautta sitten
README.zh-CN.md 80bb812c14 chore(custom): 构建工具提交 3 kuukautta sitten
commitlint.config.cjs 1cf8883c65 feat(custom): 增加mock功能 3 kuukautta sitten
index.html a5e5d40b5b 完成功能:1.登录页 2.路由权限配置 3.菜单 4.用户管理页 5.设置功能汉化 4 kuukautta sitten
package.json 80bb812c14 chore(custom): 构建工具提交 3 kuukautta sitten
pnpm-lock.yaml 80bb812c14 chore(custom): 构建工具提交 3 kuukautta sitten
postcss.config.js 80bb812c14 chore(custom): 构建工具提交 3 kuukautta sitten
tailwind.config.ts 7987489a28 navigate测试 4 kuukautta sitten
tsconfig.json 80bb812c14 chore(custom): 构建工具提交 3 kuukautta sitten
vite.config.ts 990e4a8000 chore(custom): 构建配置升级 3 kuukautta sitten

README.md



Slash Admin

Slash Admin is a modern admin dashboard template built with React 18, Vite, Ant Design, and TypeScript. It is designed to help developers quickly create powerful admin management systems.



Preview · Discord · Document

English | 中文

Sponsor

Preview

login.png login_dark.png
analysis.png workbench.png

Features

  • Built using React 18 hooks.
  • Powered by Vite for rapid development and hot module replacement.
  • Integrates Ant Design, providing a rich set of UI components and design patterns.
  • Written in TypeScript, offering type safety and an improved development experience.
  • Responsive design, adapting to various screen sizes and devices.
  • Flexible routing configuration, supporting nested routes.
  • Integrated access control based on user roles.
  • Supports internationalization for easy language switching.
  • Includes common admin features like user management, role management, and permission management.
  • Customizable themes and styles to meet your branding needs.
  • Mocking solution based on MSW and Faker.js.
  • State management using Zustand.
  • Data fetching using React-Query.

Quick Start

Get the Project Code

git clone https://github.com/d3george/slash-admin.git

Install Dependencies

In the project's root directory, run the following command to install project dependencies:

pnpm install

Start the Development Server

Run the following command to start the development server:

pnpm dev

Visit http://localhost:3001 to view your application.

Build for Production

Run the following command to build the production version:

pnpm build

Docker deployment

Build image and Run container

build image

Enter the project root directory in the terminal and execute the following command to build the Docker image:

docker build -t your-image-name .

Make sure to replace your-image-name with your own image name

run container

Run your application in the Docker container using the following command:

docker run -p 3001:80 your-image-name

This will run your application on port 80(exposed in Dockerfile) of the container and map it to port 3001 on your host.

Now you can access http://localhost:3001 to view the deployed applications.

use docker-compose.yaml

Enter the project root directory in the terminal and execute the following command to start Docker Compose:

docker-compose up -d

Docker Compose will build an image based on the configuration defined by 'docker-compose. yaml' and run the container in the background.

After the container runs successfully, it can also be accessed through http://localhost:3001 To view the deployed applications.

Git Contribution submission specification

reference.commitlint.config.js

  • feat new features
  • fix fix the
  • docs documentation or comments
  • style code format (changes that do not affect code execution)
  • refactor refactor
  • perf performance optimization
  • revert revert commit
  • test test related
  • chore changes in the construction process or auxiliary tools
  • ci modify CI configuration and scripts
  • types type definition file changes
  • wip in development