- Notifications
You must be signed in to change notification settings - Fork6
Web terminal to manage your Spring Boot app
License
NotificationsYou must be signed in to change notification settings
linux-china/xtermjs-spring-boot-starter
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Supply a web terminal to manage Spring Boot app. Why?
- Access easy: not install, no env setup, just open the browser
- Use commands to manage app
- No need to us curl to call lots of REST API
- Easy to write commands by Spring Shell
Attention: You should care about security by yourself.
- Edit pom.xml and add following dependency:
<dependencies> <dependency> <groupId>org.mvnsearch</groupId> <artifactId>xtermjs-spring-boot-starter</artifactId> <version>1.3.1</version> </dependency> </dependencies>
- Open application.properties and add rsocket configuration.
# rsocket websocketspring.rsocket.server.mapping-path=/rsocketspring.rsocket.server.transport=websocket# disable spring shell interactive modespring.shell.interactive.enabled=false
- Start Spring Boot app and visithttp://localhost:8080/xterm
- History: arrow up/down
- Ctrl+U: clear input
- clear: clear the screen
- exit: close the window/tab
- cd, ls, tree etc. support by ZT Process Executor
- date
- curl: curl command for http operation
- threads: display threads
- classpath: display classpath
- Help: Spring Shell help
- app: display app information
- beans: display all spring beans
- bean: display bean definition
- profiles: display profile
- metrics: display metrics
- health: display health information
- spel: execute SpEL expression 'spel userService.findById(1)'
- actuator: display actuator information
- redis commands
use redisset nick linux_chinaget nickexit- mysql commands
use dbselect * from account;exit db- Start Spring Boot App to supply xterm backend service
- Start "npm run start" to start Webpack dev server for JavaScript development
- Xterm.js Home:https://xtermjs.org/
- Spring Shell Docs:https://docs.spring.io/spring-shell/docs/current/reference/htmlsingle/
- xterm.js + local echohttps://www.linkedin.com/pulse/xtermjs-local-echo-ioannis-charalampidis
- How to change the output color of echo in Linux:https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux
- NO_COLOR:https://no-color.org/
About
Web terminal to manage your Spring Boot app
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.
