CodeBlocks is a Vue app framework designed to enable in-Browser source-code editing. The System allows you to compile and run specific languages (currently Python, Java, and JavaScript) clientside in the browser.
The app provides both an easy to use edit mode for questions as well as questionnaire mode.
You need to install npm to compile the app/framework.
After that, you can install all dependencies by running
npm install
in the folder with this README.
During development, you can utilize a simple dev-server that recompiles and servers the app on demand.
npm run serve
You can build all required files for distribution using
npm run build-lib
The build command will (by default) deploy the lib to the ./dist
-Folder. Please ignore the generated demo.html
-File. It is generated automatically by vue and does NOT relate to the project.
The Code Question-Plugin for Ilias makes heavy use of this app.(https://github.com/frankbauer/ilias-asscodequestion). When production-building for the plugin, you need to run another build script that takes care of some unique settings.
npm run build-ilias
The command deploys the app to../codeblocks/<version>/
(relative to the root folder of this project).
We currently have a simple demo online.
Please refer to our Wiki for more Infos.