Skip to content

Online code editor module for Edrys with ability to run arbitrary commands on station devices (use for Remote Labs)

Notifications You must be signed in to change notification settings

edrys-org/module-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Edrys Code Editor Module

This module allows teachers and students to collaborate over some code and "run" it in some form. It is meant to be used with stations, where commands are going to be run using the the Command Runner Agent, for example to upload code to an embedded device or run it on locally and return the result.

Usage

Use this URL to add the module to your class:

https://edrys-org.github.io/module-code/

You may specify the following config:

Next, set up the Command Runner Agent on your station(s) to allow the module to run commands when the code is run. On the station device, you will be able to specify what commands will be run when students or teachers run the code. Every station has its own set of commands saved (they will be saved locally on each station).

The module will silently fail if the agent is not locally running in the station device (expected to be on the default port 8585).

You may optionally specify any of the following module config:

{
    "editorText": "Starting text in editor...",
    "terminalText": "Starting text in terminal...",
    "commands": "Default commands",
    "language": "cpp", // https://microsoft.github.io/monaco-editor
    "theme": "light"
}

Arduino example

Below is an exmaple where this module is used to allow students to upload code to a live Arduino station.

This is what students and teachers see in the station, where the top section is the code editor, and the bottom section is a terminal showing command output when the code is run (note dark theme is pictured):

When visiting the module on the station device itself, you will also be able to customize what commands will be run for that module (using $CODE in the commands to substitue for the submitted code):

Arduino CLI is set up manually beforehand on station devices.

About

Online code editor module for Edrys with ability to run arbitrary commands on station devices (use for Remote Labs)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages