GithubHelp home page GithubHelp logo

rest-based-shell's Introduction

rest-based-shell

This project is intended to be able to run commands where your application is hosted if a terminal is not exposed to you.

This REST based application simply takes the command and executes using shell. I tried to emulate real behaviour of system shell. So added a username parameter, this differentiates the directory state of each shell. Using the endpoint with different usernames is similar to using two terminal windows.

Development

To run it locally simply clone the project and run gradle clean build and run the jar from build/libs folder.

If you are using IntelliJ, just import the project and run main() of ApplicationKt

After application is up and running, you can head over to localhost:8080 (username,password -> admin, admin)

Screenshot

Demo Image

Contribution

Feel free to checkout the project, submit issues and enhancement requests.

rest-based-shell's People

Contributors

viveksb007 avatar

Watchers

 avatar  avatar

rest-based-shell's Issues

add exit command for terminating user sesssions

currently, once a shell instance is created using a USERNAME, then its retained in memory as long as application is up.
There should be some expiration logic like using exit command to kill shell session or some time based session termination.

convert it into a library

convert and publish it as a library which can be integrated and initialized in other Applications.
Need to look for integration with different frameworks like Spring-Boot and Sparkjava

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.