算法评测平台前端。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Menci 271435c5ef Disable auto refresh on hidden judge state 8 years ago
models Disallow users to see non-public problem's judge state 8 years ago
modules Fix can't submit contest problems 8 years ago
static Adapt the new judger 8 years ago
uploads Add uploads folder 8 years ago
views Disable auto refresh on hidden judge state 8 years ago
.babelrc Initial commit 8 years ago
.gitignore Use file to store session 8 years ago
LICENSE Initial commit 8 years ago
README.md Update README links 8 years ago
app.js Fix http or database error on long code or compiler output 8 years ago
config-example.json New UI for problem submit 8 years ago
package.json Remove highlight.js 8 years ago
utility.js Fix hang on markdown empty string 8 years ago

README.md

SYZOJ 2

An OnlineJudge System for OI.

The UI is powered by Semantic UI.
Template designed & coded by Sengxian and Menci.

Deploying

There's currently no stable version of SYZOJ 2, but you can use the unstable version from git.

git clone https://github.com/syzoj/syzoj
cd syzoj

Install dependencies with npm install or yarn.

Copy the config-example.json file to config.json, and change the configures.

Database

SYZOJ 2 uses Sequelize, which supports many database systems, including MySQL and Sqlite.

By default it use the Sqlite database syzoj.db, you can change it in config.json

Security

You should change the session_secret and judge_token in config.json.

Administration

In the database, the is_admin field in user table describes whether a user is admin or not.

To make a user be an admin, the only way is via database.

Judge

There's no judger for SYZOJ 2 currently. But SYZOJ 2 has API compatibility with the old SYZOJ, so we can use its judger.

Please go to syzoj-judge.