/jyrdexam

公司员工在线考试系统后端项目

Primary LanguageJavaScript

jyrdexam

公司员工在线考试系统

当前为系统后端接口以及管理员页面

软件架构:SpringBoot+Mybatis-Plus+jQuery+Bootstrap+Ajax

演示地址:http://admin.lvyi.club   员工答题前端演示地址:http://exam.lvyi.club

技术栈

  1. 主技术栈
  1. UI 技术栈
  • 模板引擎Thyemleaf
  • Bootstrap
  • Ajax

项目结构

|-com.jyrd.exam
    |-base
      |-common //公共模块
      |-config //配置文件
      |-entity //数据库实体类
      |-mapper //mapper接口以及xml
      |-vo //参数传递实体
    |-admin  //管理员api
    |-home   //入口api
    |-exam   //考试相关api 
|-resources
    |-static  //页面静态文件
    |-templates  //模板视图文件
    |-SQL  //SQL语句
    application.yml //核心配置文件
    logback-spring.xml //日志配置文件
    tracker.conf  //fastDFS配置文件

项目部署

  1. FastDFS安装
  • 先安装tracker服务
  • 然后安装storage服务
  • 最后安装fastdfs-nginx-module
  1. nginx安装
  • nginx.conf配置
\#后端代理地址
    upstream exam-admin {
      server xx.xx.xx.xx:xxxx;
    }
\#前端项目根路径
    location / {
        root   jyrdexam; // 该路径为nginx安装目录下的项目路径
        try_files $uri $uri/ @router;
        index  index.html index.htm;
    }
\#解决vue刷新页面404
    location @router {
        rewrite ^.*$ /index.html last;
    }
\#fastDFS
    location /group1/M00/ {
         ngx_fastdfs_module;
    }
\#后端接口转发
     location /ucenter/ {
        proxy_pass   http://exam-admin;
    }
    location /exam/ {
        proxy_pass   http://exam-admin;
    }
  1. 项目运行
  • 后台运行:nohup java -jar xxx.jar > logPath &
  • 日志查看:tail -f log

License

MIT