Skip to content

This is an online compiler that can compile and run C\C++ And Java Program. This online compiler is a part of my 5th semester project "RUET Online Judge" . Developed By Ashadullah Shawon

Notifications You must be signed in to change notification settings

shawon100/Online-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo

https://oj.redlimesolutions.ml/

Online-Compiler

This is an online compiler that can compile and run C\C++ And Java Program. This online compiler is a part of my 5th semester project "RUET Online Judge" . This Online Compiler is Developed By Ashadullah Shawon

Languages

C , C++ And Java

Requirements

Linux, gcc, g++ , Java Compilers And Lampp

Install Projects And Compilers

git clone https://github.com/shawon100/Online-Compiler.git

C/C++

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.8


sudo ln -f -s /usr/bin/g++-4.8 /usr/bin/g++

Java

sudo add-apt-repository ppa:openjdk-r/ppa  
sudo apt-get update   
sudo apt install openjdk-8-jre

Move Online-Compiler Folder to Server Folder

If you are using Xampp then you have to move Online-Compiler folder to htdocs of Xampp. If you are using only Apache Server then move to www folder.

Change Permission

chmod -R 777 Online-Compiler

Run

Type http://localhost/Online-Compiler/ from your Browser. Done!

Windows Version

https://github.com/shawon100/Online-Compiler-Windows-Server

DevOps Features

Install Docker at first. So, you can run this project in Windows/Linux/Mac
using Docker without doing anything mentioned before.

Direct One Command Install

docker pull shawon10/online-compiler

Docker Run Pulled Image

docker run -p 80:80 online-compiler

Check IP

docker-machine ip

Run Browser

Type your ip in browser adress bar and Enter

Docker Build Image

Copy Dockerfile to Outside of Online-Compiler Folder. Then Run docker build command.

docker build -t online-compiler .

Docker Run Container

docker run -p 80:80 online-compiler

Video Tutorial

https://www.youtube.com/watch?v=bf-inYN2V-k

Kubernetes

Create deployment.yaml file

apiVersion: v1
kind: Service
metadata:
  name: onlinecompiler-service
spec:
  selector:
    app: onlinecompiler
  ports:
  - protocol: "TCP"
    port: 80
    targetPort: 80
  type: NodePort

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: onlinecompiler
spec:
  selector:
    matchLabels:
      app: onlinecompiler
  replicas: 1
  template:
    metadata:
      labels:
        app: onlinecompiler
    spec:
      containers:
      - name: onlinecompiler
        image: shawon10/online-compiler
        imagePullPolicy: Always
        ports:
        - containerPort: 80

Run

kubectl apply -f deployment.yaml

Check IP and Ports

 kubectl get svc

Openshift Deploy (Online)

Check this video: https://www.youtube.com/watch?v=QnA0QidkWSM

About

This is an online compiler that can compile and run C\C++ And Java Program. This online compiler is a part of my 5th semester project "RUET Online Judge" . Developed By Ashadullah Shawon

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published