bajapro/online-compiler
2025-06-07 16:18:13 +07:00
..
.idea first commit 2025-06-07 16:18:13 +07:00
compiler first commit 2025-06-07 16:18:13 +07:00
java_files first commit 2025-06-07 16:18:13 +07:00
lib first commit 2025-06-07 16:18:13 +07:00
onlinecompiler first commit 2025-06-07 16:18:13 +07:00
.classpath first commit 2025-06-07 16:18:13 +07:00
.gitignore first commit 2025-06-07 16:18:13 +07:00
.project first commit 2025-06-07 16:18:13 +07:00
db.sqlite3 first commit 2025-06-07 16:18:13 +07:00
grade_generator.log first commit 2025-06-07 16:18:13 +07:00
manage.py first commit 2025-06-07 16:18:13 +07:00
Procfile first commit 2025-06-07 16:18:13 +07:00
python first commit 2025-06-07 16:18:13 +07:00
Readme.md first commit 2025-06-07 16:18:13 +07:00
requirements.txt first commit 2025-06-07 16:18:13 +07:00

Readme

use following step to using this project\
this project using django and python 3.x.\
python 3.10 is recommended

First initialize project

  1. Clone project from github directory git clone https://github.com/rsakml/onlinecompailer.git

  2. Create a virtual environment in the project folder python -m venv env

  3. Install in env folder pip install -r requirements.txt

    all project dependency is located on requirements.txt

  4. If Django is not installed, run the following command pip install django

Running Django Framework using Virtual Environment use this command:
onlinecompiler> env\Scripts\activate

Virtual environment will be activate on command prompt if look like this:
(env) onlinecompiler>

And run the python: (env) onlinecompiler>python manage.py runserver it will serve on default port 8000.

API DOC

URL Description method params response
/compile/run Compile java file POST {code:'xxx', user: 'you@mail.com'} {output: { java: 'xx', test_output: 'xx', point: x}}
/compile/test_files Get all java Test Files GET
/compile/upload Upload java test file POST {file:'xx'(multipart/form-data)} {status: "ok"}
compile/delete Delete java test file POST {filename: 'xx'} {"message": "readme.txt deleted","status": "success"}