An open API service indexing awesome lists of open source software.

https://github.com/lmmmmmm-bb/octo-exam

Vite + Vue3 的在线考试系统
https://github.com/lmmmmmm-bb/octo-exam

linter pinia pnpm typescript vite vue vue3

Last synced: 3 months ago
JSON representation

Vite + Vue3 的在线考试系统

Awesome Lists containing this project

README

          

![octo-exam](https://socialify.git.ci/Lmmmmmm-bb/octo-exam/image?description=1&language=1&name=1&theme=Light)


octo-exam-Codeql-Action



GitHub license
Commitizen friendly
GitHub issues
GitHub PR
octo-exam-BE
Email

## 技术栈

- Vite
- Vue3 + Vue-Router4 + Pinia
- Axios
- ESLint + Prettier
- Commit Lint + Husky
- Element Plus + Tailwind CSS
- SCSS + SCSS-Typed-Modules
- pnpm

## 启动项目

```shell
# 开发调试
> pnpm install # 安装依赖
> pnpm dev # 启动开发服务器
# 生产环境
> pnpm build # 构建生产环境
> pnpm preview # 本地预览
```

## 一些问题的解答

### Why Pinia not Vuex

由于 Vuex4 对 TS 的支持不太友好,Pinia 有更好的 TS 支持和函数式思想,提供的 API 简单,上手也更快,所以最后选择了 Pinia。[对比 Pinia 和 Vuex](https://pinia.vuejs.org/introduction.html#comparison-with-vuex)

### Commit Lint Friendly

仓库使用了 `commit-lint` 和 `cz-customizable`,请使用 `pnpm commit` 代替 `git commit`。