GithubHelp home page GithubHelp logo

hhy5277 / noj Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zsgsdesign/noj

0.0 1.0 0.0 43.31 MB

NOJ's another online judge platform

Home Page: https://acm.njupt.edu.cn

License: MIT License

PHP 68.83% Visual Basic 0.02% Batchfile 0.01% Shell 0.02% Vue 0.08% HTML 31.04%

noj's Introduction

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.

Scrutinizer Code Quality FOSSA Status Code Coverage Build Status Code Intelligence Status 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
  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
    • 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
          • 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
  • Contest System
    • Contest List
    • Contest Tag
    • 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 Replay
  • 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 Panel
    • User Management

Credit

Laravel

Markdown

Simple-HTML-Dom

JudgeServer

HTML Purifier

License

FOSSA Status

noj's People

Contributors

daviddiao avatar fossabot avatar gaoffan avatar pikanglong avatar scrutinizer-auto-fixer avatar sinonjzh avatar x3zvawq avatar youjiezhang avatar zsgsdesign 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.