Coder Social home page Coder Social logo

liq07lzucn / online-compiler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shawon100/online-compiler

1.0 1.0 0.0 919 KB

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

JavaScript 3.08% PHP 75.12% CSS 18.10% Dockerfile 3.70%

online-compiler's Introduction

Demo

http://ruetoc-ruetoc.apps.us-east-1.starter.openshift-online.com/

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

online-compiler's People

Contributors

shawon100 avatar

Stargazers

 avatar

Watchers

 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.