/codeplayground

A web app to execute code in different programming languages and view program output

Primary LanguagePHPOtherNOASSERTION

#Code is under development

Will update proper docs by alpha release.

Code Playground

This is a web app to execute arbitary code in docker containers for different programming languages.

It was developed as a hoby project by me.

DIRECTORY STRUCTURE

  assets/             contains assets definition
  commands/           contains console commands (controllers)
  config/             contains application configurations
  controllers/        contains Web controller classes
  docker/             contains classes specific to docker interaction
  mail/               contains view files for e-mails
  models/             contains model classes
  runtime/            contains files generated during runtime
  tests/              contains various tests for the basic application
  vendor/             contains dependent 3rd-party packages
  views/              contains view files for the Web application
  web/                contains the entry script and Web resources

REQUIREMENTS

The minimum requirement by this application template that your Web server supports PHP 5.4.0.

INSTALLATION

Install from an Archive File

Extract the archive file downloaded from github repo to a directory named basic that is directly under the Web root.

You can then access the application through the following URL:

http://localhost/basic/web/

Install via Composer

If you do not have Composer, you may install it by following the instructions at getcomposer.org.

You can then install this application template using the following command:

composer global require "fxp/composer-asset-plugin:1.0.0-beta4"
composer update

Now you should be able to access the application through the following URL, assuming basic is the directory directly under the Web root.

http://localhost/basic/web/

CONFIGURATION

Available languages

Edit the file config/docker.php for config changes.

Also check and edit the other files in the config/ directory to customize your application.