https://github.com/emosheeep/onlineexercisesserver
onlineExercises项目的后端仓库,提供http服务接口
https://github.com/emosheeep/onlineexercisesserver
Last synced: about 2 months ago
JSON representation
onlineExercises项目的后端仓库,提供http服务接口
- Host: GitHub
- URL: https://github.com/emosheeep/onlineexercisesserver
- Owner: emosheeep
- Created: 2019-12-04T05:25:21.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T15:54:40.000Z (almost 3 years ago)
- Last Synced: 2025-01-19T16:27:00.517Z (9 months ago)
- Language: JavaScript
- Size: 198 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 项目简述
> 服务器使用express框架搭建,使用http服务,主要用来为onlineExercises项目前端提供题目数据## 关于服务类型的说明
**miniProgram分支如果需要使用该接口,需要改一下项目中的接口地址**,因为miniProgram分支是微信小程序,需要使用**https服务**,由于证书不便上传,这里只提供了http服务,项目运行过程中如果出现请求错误问题,请大家自行修改一下项目里面的接口地址,这里列出各分支项目中接口位置:
1. miniProgram:app.js
2. questionWithVue:src/api/api.js
3. questionWithServer:js/main.js运行服务,后台将遍历questions目录下存放的所有excel文件,并读取题库,将读取到的数据规范化为前端需要的数据结构,等待客户端的请求。
题库文件只能为excel表格文件,且题目必须符合一定的格式(题号,题目,四个选项,正确答案)。在后端目录下cmd运行以下命令即可运行服务:
##### 安装依赖
```# npm install```
##### 运行服务
```# node index.js```