Skip to content

starter-kit-fe/vue-template

Repository files navigation

项目名称

简要描述你的项目,说明它的目的和功能。

目录结构

├── auto-imports.d.ts          # 自动导入的类型定义
├── bun.lockb                  # Bun 的锁定文件
├── components.d.ts            # 组件的类型定义
├── env.d.ts                   # 环境变量的类型定义
├── eslint.config.js           # ESLint 配置文件
├── index.html                 # 入口 HTML 文件
├── Makefile                   # Makefile,用于自动化构建任务
├── package.json               # 项目依赖和脚本
├── postcss.config.js          # PostCSS 配置文件
├── public                     # 公共资源文件夹
│   └── favicon.ico            # 网站图标
├── README.md                  # 项目的说明文件
├── src                        # 源代码文件夹
│   ├── App.vue                # 主应用组件
│   ├── assets                 # 静态资源
│   │   ├── logo.svg          # 项目 logo
│   │   └── main.css           # 主样式文件
│   ├── components             # 组件文件夹
│   │   ├── header.vue         # 头部组件
│   │   └── provider           # 提供者组件
│   │       └── element-plus.vue # Element Plus 组件
│   ├── constant               # 常量文件夹
│   │   └── cookies.ts         # Cookie 相关常量
│   ├── hooks                  # 自定义 Hook
│   │   └── build-info.ts      # 构建信息 Hook
│   ├── main.ts                # 应用入口文件
│   ├── router.ts              # 路由配置
│   ├── store.ts               # 状态管理
│   ├── utils                  # 工具函数
│   │   ├── cookies.ts         # Cookie 工具函数
│   │   └── request.ts         # 请求工具函数
│   └── views                  # 视图文件夹
│       ├── about              # 关于页面
│       │   ├── index.vue      # 关于页面组件
│       │   └── store.ts       # 关于页面的状态管理
│       └── home               # 首页
│           ├── api.ts         # 首页 API
│           ├── components      # 首页组件
│           │   └── table.vue   # 表格组件
│           ├── hook.ts        # 首页 Hook
│           ├── index.vue      # 首页组件
│           ├── store.ts       # 首页的状态管理
│           └── types.d.ts     # 首页类型定义
├── tailwind.config.js         # Tailwind CSS 配置文件
├── tsconfig.app.json          # 应用的 TypeScript 配置
├── tsconfig.json              # TypeScript 配置
├── tsconfig.node.json         # Node.js 的 TypeScript 配置
└── vite.config.ts             # Vite 配置文件

安装

  1. 确保你已经安装了 Node.jsBun
  2. 克隆这个仓库:
    git clone <repository-url>
    cd <project-directory>
  3. 安装依赖:
    npm install
    # 或者使用 Bun
    bun install

使用

  1. 启动开发服务器:

    npm run dev
    # 或者使用 Bun
    bun run dev
  2. 打开浏览器访问 http://localhost:3000(根据你的配置可能会有所不同)。

  3. 构建项目:

    npm run build
    # 或者使用 Bun
    bun run build

贡献

欢迎任何形式的贡献!请查看 贡献指南 以获取更多信息。

许可证

此项目使用 MIT 许可证

About

基于JWT,Vue3 & Vite、Element Plus 的模版

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published