Files
cunkebao_v3/nkebao/README.md
笔记本里的永平 f232866825 feat: 本次提交更新内容如下
基础样式构建完毕
2025-07-17 22:46:39 +08:00

44 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Nkebao Base
一个现代化的 React + TypeScript 前端项目模板,适用于中后台管理系统、移动端 H5 等场景。
集成了 Vite 极速构建、Zustand 轻量状态管理、模块化路由与权限拦截、axios 请求封装、移动端 rem 适配等主流工程能力。
---
## 启动方式
```bash
yarn install
yarn dev
```
---
## 技术栈
- **React 18**:主流前端框架
- **TypeScript**:类型安全开发
- **Vite**:极速开发与构建工具
- **axios**:请求库,统一封装
- **sass**CSS 预处理
- **React Router v6**:路由管理,支持模块化与权限拦截
- **antd / antd-mobile**:桌面端与移动端 UI 组件库
- **postcss-pxtorem**rem 适配,移动端友好
- **Zustand**:轻量状态管理,支持持久化
- **ESLint + Prettier**:代码规范与自动格式化
- **路径别名 @**:简化 import
---
## 目录结构
```
src/
api/ # axios 封装与接口模块
pages/ # 页面组件
styles/ # 全局样式
App.tsx # 入口组件
main.tsx # 入口文件
public/
index.html # HTML 模板
```