Giter Club home page Giter Club logo

stuscores's Introduction

stuScores

基于 Jersey + Vue 2 的 C/S 学生成绩管理系统。 采用前后端分离设计, 部署时需要运行 API Server 、 编译前端代码并配置 Nginx 。 当然,你可以使用我们预先编译好的 Docker 镜像来快速启动一个预览服务器:

docker run -p 8788:8788 whtsky/stuscores

然后在浏览器里打开 http://127.0.0.1:8788/

前端

# 安装 Nodejs 与 yarn
brew install yarn
# 安装依赖
cd frontend
yarn

# 运行开发服务器
yarn dev
# build
yarn build

API Server

API Server 使用 Jersey 框架编写, 数据库使用 SQLite 。针对 Student 、 Exam 、 Score 、 Subject 四个模型暴露了 Restful JSON API,方便客户端调用。 为了开发、调试方便, API Server 默认会 host 静态文件。 强烈建议在生产环境下使用 Nginx host 静态文件.

编译

**

需要 Java 8 + Maven 3

brew cask install java
brew install maven

然后:

mvn clean package
java -jar target/stuScores-1.0-SNAPSHOT.jar

之后在浏览器里打开 http://127.0.0.1:8788/

部署

部署过程稍微有些繁琐, 所以我们写好了 docker-compose.yml 文件。 最简单的部署方法是安装 DockerDocker Compose ,然后运行

docker-compose up

参考资料

stuscores's People

Contributors

whtsky avatar margaux7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.