01 | Allows users to either copy the code into the text box provided on the homescreen or upload their code as a file. |
02 | If a user wants a personalized experience, the user can in this case login to save all the uploaded code and have a look at their coding profile and history of logins. |
|
|
04 | Monetizes the platform to keep the servers alive by displaying advertisements on the right panel of the screen. |
Layout of the website would be very simple and minimal. On the client side their would only be a couple of web pages, which
include one for uploading code and input, second one would be for analysing and comparing the result. If the user is logged in then two additional screens would be there., one for login history and other for submission history. On each and every page of the website the right panel would contain advertisements and the panel at the bottom would contain contact info, site search, and social networks button. On server side the server environment would allow compilation of programs/code. The server will also maintain the login history and visitor count.
This application is designed for windows server. Then for each language supported by the compiler you have to link the php file to your local compiler. To accomplish this task you can follow these steps:
- You should have the compiler for the desired languge on your local server machine.
- Then in the environment variables in to "path" variable add the path to the compiler.
- In this last step, you should in the php file corresponding to the desired language you should assign the variable "putenv" the path of the compiler in your local server machine.
Copyright © 2018 Priyansh Saxena Licensed under GNU Lesser General Public License version 2.1 (LGPL-2.1)For example for C/C++ you have to follow these steps: The windows server should have MinGW installed (or can be downloaded here with all its packages. Then open the directory in which the MinGW is installed, open bin folder and copy this directory path (which should be
...\MinGW\bin
) Add this path to the environment variablepath
on the local server machine. Similarly in the compilers folder of the project and in thec.php
file to the variable putenv assign the path (...\MinGW\bin
).putenv("PATH=...\MinGW\bin")
.