GithubHelp home page GithubHelp logo

sacoo7 / codefeed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lprimeroo/codefeed

1.0 2.0 0.0 1.27 MB

A flexible code judge perfect for locally hosted programming competitions .

License: MIT License

JavaScript 99.07% Shell 0.22% Python 0.02% CSS 0.21% HTML 0.48%

codefeed's Introduction

Codefeed

Codefeed is a source code judge that can be used for programming competitions, recruitement , etc . It is enclosed in a Docker Ubuntu Sandbox that enables it to compile the user submitted code within itself instead of using an external API .

Installation

First clone the repository ,

git clone https://github.com/saru95/codefeed

Navigate to the Setup folder . It contains Dockerfile , which consists of the Sandbox dependencies . Run the Dockerfile as you like or just execute ,

./UpdateDocker.sh

It will create a Docker image with the name virtual_machine_codefeed which should be over 1GB in size .

For the next step, navigate to config/database.js and replace the existing DB URL with your cloud hosted URL .

  • MongoDB is used here .

Next , you need to install the project dependencies . Navigate to the root folder and run ,

sudo npm install .

Run,

node server

to launch the website .

Some words of caution ,

  • Make sure you have stable internet connection while setting up the Dockerfile .
  • Make sure your vm_name in the file server.js matches with the Docker image name .
  • If your code doesn't compile and return the result , there's a 90% chance that you have a slow internet connection . To tackle that, increase the timeout_value in server.js .
  • For Linux distro users , replace gtimeout in DockerTimeout.sh with timeout . gtimeout is only supported for OSX platform .
  • Do not touch the Payload folder while setting up .

Features

  • Supports Python, Ruby, C++, C and Java .
  • Rankings of users .
  • Ability for the user to add problems .
  • Detecting redundant submissions .
  • Facebook login .
  • View all solved problems .
  • Profiles .

P.s : Still has a lot of room for improvements .

Notes

  • To add more languages, fiddle with compilers.js and add its dependency to Dockerfile and update the image .
  • To play around with the website UI, use templates in the viewfolder .
  • To play around with the existing schema or FB authentication , checkout config folder .

##Authors Sarthak Munshi Shivani Singh

A later stage P.S.

We wrote this when we were in our sophomore year . Hence, the scarcity of tests , style guide and modularity . This project works just fine but isn't maintained anymmore as it was done as a learning project .

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.