# online-ide **Repository Path**: covscript/online-ide ## Basic Information - **Project Name**: online-ide - **Description**: CovScript Online IDE. - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-31 - **Last Updated**: 2022-08-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CovScript Online Interpreter Try it on: http://dev.covariant.cn/ or WeChat Miniprogram ![](html/wechat.jpg) ## Insatll Guide 1. Prepare: debian based linux, apache2 and [csbuild requirements](https://github.com/covscript/csbuild) 2. Clone this repository into your system 3. Copy [install.sh](install/install.sh) to some place you like 4. Modify the `install_home` settings in `install.sh` to where your local repo placed. 5. Setup crontab to call install script automatically. ## Online Interpreter Web API(HTTP POST) POST following contents to server, and it will return the contents with stdout: ``` { "code": "", "stdin": "", } ``` Our Public Server: ``` http://dev.covariant.cn/cgi/cs-online (unencrypted) https://dev.covariant.cn/cgi/cs-online (encrypted) ``` ## Run CovScript Code with `ajax` ```js postData = { code: window.btoa(""), stdin: window.btoa("") } $.ajax({ type: "post", url: "http://dev.covariant.cn/cgi/cs-online", data: JSON.stringify(postData), async: true, success: function (data) { // Your code here }, error: function (data) { // Your code here } }) ```