Giter Club home page Giter Club logo

hznuoj's Introduction

HZNUOJ

Build

HZNUOJ 是基于 HUSTOJ 改造而来的,遵循 GPL 协议开源

部署指南

使用 Docker(推荐)

构建镜像

在仓库根目录下:

docker build -t hznuoj:latest -f docker/Dockerfile ./

等待 build 完成即可。

完成后 docker image ls,若有看到 hznuoj 的镜像即为成功。

启动容器

docker run -it --restart=always -d \
-p 80:80 \
--name=hznuoj \
-v /var/hznuoj/static.php:/var/www/web/OJ/include/static.php \
-v /var/hznuoj/upload:/var/www/web/OJ/upload \
-v /var/hznuoj/data:/var/hznuoj/data \
hznuoj:latest
  • -p 80:80 表示把容器的 80 端口映射到宿主机的 80 端口,可自行修改。
  • --name=hznuoj 表示指定容器的名字为 hznuoj
  • -v /var/hznuoj/static.php:/var/www/web/OJ/include/static.php 表示将宿主机上的 /var/hznuoj/static.php 文件挂载到容器内的 /var/www/web/OJ/include/static.php

然后访问 localhost:80 即可。

进入容器

docker exec -it hznuoj bash

使用教程

默认管理员账号为 admin/123456。

出题手册见 https://www.yuque.com/weilixinlianxin/zcf10d/yfk05w

优势

  • 更华丽的界面
  • 更灵活的权限管理
  • 支持多组样例
  • 有封装好的 Docker 镜像,一键部署

界面截图

首页

支持提交量和访问量的统计

index

榜单

重写过的的榜单

board

能点开查看每题的提交状况

board2

题目编辑界面

problem-edit

多样例支持

problem-edit

权限管理界面

细分的权限分配

privilege

hznuoj's People

Contributors

lixin-wei avatar dup4 avatar fyhkimyon avatar zkingq avatar jnxxhzz avatar treasure-u avatar

Stargazers

D0ub1e 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.