Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kwanhooo/kunpeng-edu-frontend

辅学 - 鲲鹏智能学考平台
https://github.com/kwanhooo/kunpeng-edu-frontend

lesscss typescript vite vue vue-router4 vue3 vuex4

Last synced: 3 days ago
JSON representation

辅学 - 鲲鹏智能学考平台

Awesome Lists containing this project

README

        

# 鲲鹏智能学考 ![visitors](https://visitor-badge.glitch.me/badge?page_id=Kwanhooo.kunpeng-edu-frontend)

### —— KunPeng Edu

_本项目的开发工作起始于:2022 年 7 月 18 日 星期一_

## 📔 自述

> 2022 © [鲲鹏智能学考 - 次世代辅学系统](https://kp.0xCAFEBABE.cn)
>
> Powered by [@KunPeng Edu Org.](https://gitee.com/hixs/kunpeng_front)

## 💻 开发技术

### 基本

- TypeScript
- Less
- Vue.js @3
- Vite @3
- Vue Router @4
- Vuex @4
- Axios

### 代码规范化工具

- ESLint
- Prettier
- Stylelint
- Commitlint
- Husky Git Hooks
- Lint-staged
- editorconfig

### 其它开发依赖

- lodash.clonedeep (深拷贝)
- spacejs (测量工具)
- mockjs (模拟数据)
- mitt (传递)
- store (localStorage 封装)

## 🦾 源码

1. ### 安装依赖

```npm
npm install
```

2. ### 启动服务

```npm
npm run serve
```

3. ### 开发

```npm
# 注册 Husky Git 钩子
npm run prepare
```

```npm
# 格式化代码
npm run lint
npm run lint:ss:fix
```

```shell
# 提交代码

# 1.添加到暂存区
git add .

# 2.提交代码
# `type`的允许值详见 commitlint.config.js
# 示例:git commit -m "feat: 新增动态路由功能"
# 此时会触发先前注册的钩子,执行代码格式化、代码检查、代码提交等操作
git commit -m [optional scope]:

# 3.推送至远端
git push
```

4. ### 构建

```npm
# 预览环境构建(启用Mock服务)
npm run build:preview

# 生产环境构建
npm run build
```

## 🔨 部署方案

1. ### 开发环境 (env.development)

- 主机:_vercel.com_
- 访问方式:*https://kp.0xCAFEBABE.cn*
- 方案:透过**_Github_**自动化构建,部署至**_Vercel_**;通过 Nginx 反向代理到**_Vercel_**主机

2. ### 生产环境 (env.prod)

- 主机:Tencent LightHouse
- 访问方式:*https://kunpeng.0xCAFEBABE.cn*
- 方案:打包容器镜像,部署至主机的 Docker 容器中

## 🏃 状态

### 基本状态

![GitHub](https://img.shields.io/github/license/Kwanhooo/kunpeng-edu-frontend?style=for-the-badge)

![GitHub package.json dependency version (prod)](https://img.shields.io/github/package-json/dependency-version/Kwanhooo/kunpeng-edu-frontend/vue?style=for-the-badge)

![Website](https://img.shields.io/website?label=prod-services&style=for-the-badge&url=http%3A%2F%2Fkp.0xcafebabe.cn%2F)

---

### 开发状态

![GitHub package.json version (branch)](https://img.shields.io/github/package-json/v/Kwanhooo/kunpeng-edu-frontend/master?style=for-the-badge)

![GitHub deployments](https://img.shields.io/github/deployments/Kwanhooo/kunpeng-edu-frontend/Production?label=Dev-Env%20deploy&style=for-the-badge)

![GitHub branch checks state](https://img.shields.io/github/checks-status/Kwanhooo/kunpeng-edu-frontend/master?label=master%20%E5%88%86%E6%94%AF%E6%A3%80%E6%9F%A5&style=for-the-badge)

![GitHub last commit (branch)](https://img.shields.io/github/last-commit/Kwanhooo/kunpeng-edu-frontend/master?style=for-the-badge)

![GitHub commit activity](https://img.shields.io/github/commit-activity/w/Kwanhooo/kunpeng-edu-frontend?style=for-the-badge)

![GitHub contributors](https://img.shields.io/github/contributors/Kwanhooo/kunpeng-edu-frontend?style=for-the-badge)

---

### 仓库统计

![GitHub language count](https://img.shields.io/github/languages/count/Kwanhooo/kunpeng-edu-frontend?style=for-the-badge)

![GitHub repo size](https://img.shields.io/github/repo-size/Kwanhooo/kunpeng-edu-frontend?style=for-the-badge)

![Lines of code](https://img.shields.io/tokei/lines/github/Kwanhooo/kunpeng-edu-frontend?style=for-the-badge)