Giter Site home page Giter Site logo

pkage / project5 Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 417 KB

expose a root terminal to the world, "safely"

Home Page: https://youtu.be/RvRU0PaQOZs

Shell 0.35% Dockerfile 0.18% Vim Script 0.60% JavaScript 97.22% CSS 1.48% HTML 0.16%
docker tty pty websocket terminal hacky

project5's Introduction

project5

a hacky terminal running in browser, connected to a docker backend

demo

watch the demo

disclaimer

This is probably not that great and has very little security whatsoever. I have not attempted any sort of authentication past the flashy little password (foobar) at the front. Please don't actually use this for anything important without significantly hardening the server.

installation

install docker, then:

$ git clone https://github.com/pkage/project5
$ cd project5
$ cd docker && ./build.sh && ./runlocally.sh
$ npm i
$ node server.js

command line options

$ node server.js --port 8080 --vm DOCKER_IMAGE_NAME

By default, it looks for a docker image to attach to called sandbox. Right now, if you want to change it to create a new docker instance per client, change line 26 in server.js.

project5's People

Contributors

pkage avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.