Git Product home page Git Product logo

oj-b300's Introduction

Online Judge

Extra, consider to use this in the future: https://github.com/truongan/wecode-judge.git

How to install:

  1. Clone this repo
  2. Change database info
  3. Run docker compose up
  4. Open localhost:80 if you're at local server. Or open the exposed IP in your server
  5. Follow the installation process.
  6. After the installation complete, go to Settings, and change tester data and assignment location to /data/tester/ and /data/assignments/
  7. Disable Sandboxing. It's enabled by the Docker Image but you will need some extra setup to use it, so disable it for now
  8. [optional] Open /var/www/html and edit the website look. Change the image at assets/images to your choices.

How to manage:

Check if any container has started, with:

docker ps

If you need to stop this container, use

docker compose stop

Start with:

docker compose up

More Documentation

Visit https://github.com/mjnaderi/Sharif-Judge.git for more info about the online judge

What to do after installation?

Add User

Read this about adding user: https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/users.md. Adding users manually by NRP might seem like a lot of work, but don't worry! We have a Bash script prepared for this scenario.

  • First, take a look at the createuser.sh script and customize the output file format. You can specify the nrp_start and nrp_end values, as well as set the email and password to match your requirements.
  • After that, run the shell script with
    bash createuser.sh
    
    A file will be created for you. Copy all the entry with ctrl+A
  • Open the add user tab in the website, and simply paste it Paste it in the box

Add Assignment

For a complete tutorial on this, please refer to https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/add_assignment.md. Now that we are on the same page, we understand that we need to specify who can access which assignment. To achieve this, we need to prepare all the user IDs based on the schedule. No need to worry, we have a Bash script for that.

  • First, take a look at the assets/data/daftar-kelompok.txt script. You need to fill it with this format:
    NRP Group
    
    You can choose your own way to do this step.
  • Afterward, review the get-participant.shscript and customize it to suit your needs. Modify the desired_groupas required and change the output_file to your preference.
  • After that, run the shell script with
    bash get-participant.sh
    
    A file will be created for you. Copy all the entry with ctrl+A
  • Paste it at participant field when you create an assignment Paste it in the box

Now you can schedule which group can participate on each session. Don't forget to Close the Assignment after the session end so no one can access it outside the session.

oj-b300's People

Contributors

flitzcore avatar zer0-911 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.