https://github.com/viveksb007/rest-based-shell
This project emulates the shell using REST
https://github.com/viveksb007/rest-based-shell
kotlin rest-api shell spark-java
Last synced: 2 months ago
JSON representation
This project emulates the shell using REST
- Host: GitHub
- URL: https://github.com/viveksb007/rest-based-shell
- Owner: viveksb007
- Created: 2019-09-11T16:39:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-13T15:20:40.000Z (over 5 years ago)
- Last Synced: 2025-01-28T15:16:58.648Z (4 months ago)
- Topics: kotlin, rest-api, shell, spark-java
- Language: Kotlin
- Homepage:
- Size: 112 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
## Contribution
Feel free to checkout the project, submit issues and enhancement requests.