1 Star 2 Fork 0

zzzhxxx / NOJ

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

NOJ (CodeMaster)

NOJ

NOJ's another online judge platform, stands for NJUPT Online Judge. It's written in PHP, GO, Python and other function-supporting languages and supports both online judges and virtual judges, we called it mixed judge.

License Scrutinizer Code Quality FOSSA Status Code Coverage Build Status GitHub repo size Stars Forks

NOJ Development Team


John Zhang

Leader

David Diao

Deaputy

Cone Pi

BackEnd

X3ZvaWQ

BackEnd

Alice

Design

goufaan

FrontEnd

ChenKS12138

FrontEnd

Rp12138

BackEnd

Installation

CentOS will be recommended for hosting NOJ, but all major operating systems are theoretically supported.

Till now, NOJ have been successfully deployed to the following systems:

  • Ubuntu 16.04.3 LTS
  • CentOS Linux release 7.6.1810 (Core)
  • Windows 10 Professional 10.0.17134 Build 17134

Here is detailed step about deploying NOJ:

  1. You need to have a server and installed the following:

  2. Clone NOJ to your website folder;

cd /path-to-noj/
git clone https://github.com/ZsgsDesign/NOJ ./
  1. Change your website root to public folder and then, if there is a open_basedir restriction, remove it;

  2. Now run the following commands at the root folder of NOJ;

composer install

Notice: you may find this step(or others) fails with message like "func() has been disabled for security reasons", it means you need to remove restrictions on those functions, basically Laravel and Composer require proc_open(), popen() and proc_get_status() to work properly.

  1. Almost done, you still got to modify a few folders and give them permission to write;
chmod -R 775 storage/
chmod -R 775 bootstrap/
chmod -R 775 app/Http/Controllers/VirtualCrawler/
chmod -R 775 app/Http/Controllers/VirtualJudge/
  1. OK, right now we still need to configure environment, a typical .env just like the .env.example, you simply need to type the following codes;
cp .env.example .env
vim .env

After editing .env, use this to generate a new key:

php artisan key:generate
  1. Now, we need to configure the database, thankfully Laravel have migration already;
php artisan migrate
  1. Lastly, we need to configure the virtual judger and online judger;
crontab -e
* * * * * php /path-to-noj/artisan schedule:run

php artisan queue:work --queue=noj,codeforces,contesthunter,poj,vijos,pta,uva,hdu,uvalive
  1. NOJ's up-and-running, enjoy!

Supported Feature

  • Basic Home Page
  • General
    • Cron Support
    • Queue Support
    • Notification Support
      • Browser
      • MessageBox
      • Mail
    • System Version
    • System Bug Report
  • User System
    • User Login
    • User Register
    • User Password Retrive
    • User Email Verify
    • DashBoard
      • Statistics
      • Activities
      • Profile
    • Settings
  • Search System
    • Basic Redirect
    • Problem Search
    • User Search
    • Group Search
    • Contest Search
    • OnmiSearch Support
  • Problem System
    • Problem List
    • Problem Tag
    • Problem Filter
    • Problem Details
    • Problem Solution
    • Problem Discussion
    • Problem Submit
      • Problem Immersive Mode
      • Problem Editor
      • Problem Submit History
      • Problem Compiler List
      • Problem Status Bar
      • Problem Virtual Judge
        • Submit to VJ
          • CodeForces
          • UVa
          • UVa Live
          • SPOJ
          • HDU
          • Contest Hunter
          • POJ
          • Vijos
          • PTA
        • Retrive Status
      • Problem Online Judge
        • Judge Server
        • Judger
        • Submit to OJ
        • Retrive Status
  • Status System
    • Status List
    • Status Filter
    • Status Details
      • Syntax Highlight
      • Verdict
      • Code Download
      • Code Share
  • Ranking System
    • Casual Ranking List
    • Professional Ranking List
  • Contest System
    • Contest List
    • Contest Ranking
    • Contest Filter
    • Contest Details
      • Contest Registration
      • Contest Temp Account
      • Leader Board
      • Contest CountDown
      • Contest Problem List
      • Contest Problem Details
      • Contest Announcements
      • Contest Admin Portal
        • Account Generate
        • Judge Status
        • Issue Announcements
        • ScrollBoard
      • In-Contest Problem Switch
      • Problem Temp Block
    • Contest Ranking System
    • Contest Clone
    • Contest Virtual Participate
  • Group System
    • Group List
    • Group Details
      • Group Timeline
      • Group Member Management
        • Invite
        • Remove Members
        • Approve Requests
        • Sub Group
      • Group Profile
      • Group General Info
      • Group Functions
        • Group Announcement
        • Group Contests
          • Group-wide Contests
          • Site-wide Contests
        • Group Own ProblemSet
          • Add Problem
        • Group Settings
  • Admin Portal
    • User Management
    • Contest Management
    • Problem Management

Credit

Laravel

Markdown

Simple-HTML-Dom

JudgeServer

HTML Purifier

See composer.json or Dependency List for more info.

License

FOSSA Status

MIT License Copyright (c) 2018 John Zhang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

open-source online judge based on Laravel | 南京邮电大学开源 Online Judge | QQ群:668108264 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/zzzhxxx/NOJ.git
git@gitee.com:zzzhxxx/NOJ.git
zzzhxxx
NOJ
NOJ
master

搜索帮助

14c37bed 8189591 565d56ea 8189591