Git Product home page Git Product logo

bitsoj's Introduction

BitsOJ

Offline Judge for competitive programming contests.

Setup

Run this script to bypass the following steps:

  1. sudo chmod +x configure.sh
  2. ./configure.sh

Or, run these commands manually:

1.Update the system:

sudo apt-get update
sudo apt-get upgrade

2.Install ErLang

  1. cd ~
  2. wget http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_20.1-1~ubuntu~xenial_amd64.deb
  3. sudo dpkg -i esl-erlang_20.1-1\~ubuntu\~xenial_amd64.deb
    Check your ErLang installation by running:
  4. erl

3.Install RabbitMQ

Add the Apt repository to your Apt source list directory (/etc/apt/sources.list.d):

  1. echo "deb https://dl.bintray.com/rabbitmq/debian xenial main" | sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list
    Next add our public key to your trusted key list using apt-key:
  2. wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
  3. sudo apt-get update
  4. sudo apt-get install rabbitmq-server

4.Start the RabbitMQ server:

  1. sudo systemctl start rabbitmq-server.service
  2. sudo systemctl enable rabbitmq-server.service
    To check status of RabbitMQ server,
  3. sudo rabbitmqctl status

5.Create a new admin account

You should give custom values to user_name and user_password in the next command:

  1. sudo rabbitmqctl add_user user_name user_password
  2. sudo rabbitmqctl set_user_tags user_name administrator
  3. sudo rabbitmqctl set_permissions -p / user_name ".*" ".*" ".*"

6.Enable RabbitMQ management console

  1. sudo rabbitmq-plugins enable rabbitmq_management
  2. sudo chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/
    Visit : http://localhost:15672/ and login using user_name and user_password

7.Install Pika

sudo pip3 install pika

8.Install PyQt5

sudo pip3 install pyqt5

9. For testing purposes, add following users into RabbitMQ management portal:

Username Password Status Permissions

  1. BitsOJ root administrator All
  2. client client None vhost
  3. judge1 judge1 management All

And you're done!!!!

This is a test version of the BitsOJ system. Many security features are not pushed on the web for obvious reasons.

Download the executables for the complete software.

bitsoj's People

Contributors

ps0798 avatar sachinam1397 avatar valiant1011 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.