alvis
2020-02-03 16:10:10 +08:00
parent ade7347dfb
commit 10c6b6c1e9
8 changed files with 6 additions and 193 deletions
+2 -2
View File
@@ -87,9 +87,9 @@
2. 进群获取到数据库脚本,创建表初始化数据
3. /uexam/source/exam为后台代码,建议使用IntelliJ IDEA打开,在application-dev.yml文件中,配置好postgesql/mysql、redis的服务地址,打开ExamApplication文件编译运行,默认端口为8001。
4. /uexam/source/vue/exam-student 是学生系统前端代码,建议使用JetBrains WebStorm打开,先运行安装包命令:【npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ 】
【npm install --registry https://registry.npm.taobao.org 】 ,再运行编译启动命令:【npm run serve】 ,默认端口为80
【npm install --registry https://registry.npm.taobao.org 】 ,再运行编译启动命令:【npm run serve】 ,默认端口为8080
5. /uexam/source/vue/exam-admin 是后台管理系统前端代码,建议使用JetBrains WebStorm打开,先运行安装包命令:【npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ 】
【npm install --registry https://registry.npm.taobao.org 】 ,再运行编译启动命令:【npm run serve】 ,默认端口为81
【npm install --registry https://registry.npm.taobao.org 】 ,再运行编译启动命令:【npm run serve】 ,默认端口为8081
6. /uexam/source/wx/exam-student 是微信小程序端代码,直接使用微信开发者工具打开即可
### 系统展示
-5
View File
@@ -1,5 +0,0 @@
## Command
* start: nohup java -Duser.timezone=Asia/Shanghai -jar -Dspring.profiles.active=prod exam.jar > start.log 2>&1 &
* stop: kill
+1 -1
View File
@@ -1,3 +1,3 @@
NODE_ENV = 'development'
VUE_APP_API = 'http://localhost:8001'
VUE_APP_URL = 'http://localhost:81'
VUE_APP_URL = 'http://localhost:8081'
-92
View File
@@ -1,92 +0,0 @@
# exam-admin
## Pre Command
```
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
npm install --registry https://registry.npm.taobao.org
```
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Run your tests
```
npm run test
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
## Ngix gzip
```
gzip on;
gzip_min_length 1k;
gzip_comp_level 1;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/bmp application/x-bmp image/x-ms-bmp application/vnd.ms-fontobject font/ttf font/opentype font/x-woff;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
gzip_buffers 32 4k;
gzip_http_version 1.0;
```
## Ngix config
```
server {
listen 81;
server_name admin;
root /usr/local/exam/link/exam-admin;
index index.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location /api/ {
proxy_pass http://localhost:8001;
}
}
```
## Ngix Https config
```
server {
listen 86;
listen 8086 ssl;
server_name www.alvisu.com;
root /usr/local/exam/link/exam-admin;
index index.html;
error_page 500 502 503 504 /50x.html;
ssl_certificate /usr/local/exam/ssl/nginx.crt;
ssl_certificate_key /usr/local/exam/ssl/nginx.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!DH:!EXPORT:!RC4:+HIGH:+MEDIUM:!eNULL;
ssl_prefer_server_ciphers on;
location = /50x.html {
root html;
}
location /api/ {
proxy_pass https://www.alvisu.com:8001;
}
}
```
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = {
devServer: {
open: true,
host: 'localhost',
port: 81,
port: 8081,
https: false,
hotOnly: false,
proxy: {
+1 -1
View File
@@ -1,3 +1,3 @@
NODE_ENV = 'development'
VUE_APP_API = 'http://localhost:8001'
VUE_APP_URL = 'http://localhost'
VUE_APP_URL = 'http://localhost:8080'
-90
View File
@@ -1,90 +0,0 @@
# exam-student
## Pre Command
```
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
npm install --registry https://registry.npm.taobao.org
```
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Run your tests
```
npm run test
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
## Ngix gzip
```
gzip on;
gzip_min_length 1k;
gzip_comp_level 1;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/bmp application/x-bmp image/x-ms-bmp application/vnd.ms-fontobject font/ttf font/opentype font/x-woff;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
gzip_buffers 32 4k;
gzip_http_version 1.0;
```
## Ngix config
```
server {
listen 80;
server_name student;
root /usr/local/exam/student;
index index.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location /api/ {
proxy_pass http://localhost:8001;
}
}
```
## Ngix Https config
```
server {
listen 85;
listen 8085 ssl;
server_name www.alvisu.com;
root /usr/local/exam/link/exam-student;
index index.html;
error_page 500 502 503 504 /50x.html;
ssl_certificate /usr/local/exam/ssl/nginx.crt;
ssl_certificate_key /usr/local/exam/ssl/nginx.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!DH:!EXPORT:!RC4:+HIGH:+MEDIUM:!eNULL;
ssl_prefer_server_ciphers on;
location = /50x.html {
root html;
}
location /api/ {
proxy_pass https://www.alvisu.com:8001;
}
}
```
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = {
devServer: {
open: true,
host: 'localhost',
port: 80,
port: 8080,
https: false,
hotOnly: false,
proxy: {