Giter Club home page Giter Club logo

chiron-client's Introduction

Chiron-Client

Client application to be run in MiniKube that digests the learner content and displays it to the learner along with an interactive terminal session

chiron-client's People

Contributors

sammaywork avatar

Watchers

 avatar  avatar

chiron-client's Issues

API Tests

Currently there are no API level tests for the client, there should be tests to ensure that the correct behaviour is seen for specific states on the client

Handle Long Running Commands better

Some commands take time to execute, we should show some kind of progress while they're being executed and then come back with the full response when they're done

Failed Command Inputs don't appear to show

Here we send back the output of the command (pass or fail)

chiron-client/src/app.js

Lines 78 to 85 in 155211b

if (process.env.npm_command !== 'test') {
const { stdout, stderr } = await exec(req.body.command)
logging.info(stdout)
logging.info(stderr)
res.json({
newContent,
commandOutput: stdout || stderr
})

But when executing an obviously wrong command using the terminal, nothing comes through (for example: echo "hello, world"

Make Command I/O Clearer

Currently the command output looks like this:

README.md
build.sh
content.yaml
coverage
deployment
docker
index.js
node_modules
package-lock.json
package.json
samples
src
static
Hello, World
Hello, World
Hello, World
Hello, World
Hello, World

Which isn't exactly clear for the user, this should be changed

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.