Skip to content
NOJ's another online judge platform
Branch: master
Clone or download
Latest commit a3676ee May 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github update Mar 16, 2019
.vscode fixed tab size inconsistence Mar 26, 2019
app Merge pull request #92 from X3ZvaWQ/master May 22, 2019
bootstrap
config add migration for rate May 16, 2019
database user setting extra info May 20, 2019
public remove useless static files May 13, 2019
resources fixed display May 21, 2019
routes update view May 21, 2019
storage init Laravel Dec 12, 2018
tests update tests Mar 10, 2019
.editorconfig init Laravel Dec 12, 2018
.env.example update with email settings May 14, 2019
.gitattributes init Laravel Dec 12, 2018
.gitignore ignore ipch Mar 26, 2019
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Mar 11, 2019
CONTRIBUTING.md update CONTRIBUTING Mar 15, 2019
LICENSE Initial commit Dec 5, 2018
README.md update progress and dep May 21, 2019
artisan init Laravel Dec 12, 2018
composer.json update progress and dep May 21, 2019
composer.lock update composer lock May 14, 2019
composer.phar studying Jan 28, 2019
cron.vbs fixed crul error Feb 13, 2019
laravel.schedule.bat fixed crul error Feb 13, 2019
maintainMySQL.sh add MySQL maintain shell code Mar 13, 2019
noj.png add installation guide Feb 27, 2019
package.json init Laravel Dec 12, 2018
phpunit.xml init Laravel Dec 12, 2018
server.php init Laravel Dec 12, 2018
update.sh sdd upgrade.sh for Linux May 14, 2019
webpack.mix.js init Laravel Dec 12, 2018

README.md

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.

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

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 PHP and Composer;

  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 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
  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
  1. NOJ's up-and-running, enjoy!

Supported Feature

  • Basic Home Page
  • General
    • Cron Support
    • Queue Support
    • Notification Support
      • Browser
      • 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
    • Status 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 Tag
    • 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
      • 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
        • Delete
        • Sub Group
      • Group Profile
      • Group General Info
      • Group Functions
        • Group Announcement
        • Group Posts
        • 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

You can’t perform that action at this time.