Crates.io | web-terminal |
lib.rs | web-terminal |
version | 0.1.0 |
source | src |
created_at | 2024-06-01 16:59:22.966984 |
updated_at | 2024-06-01 16:59:22.966984 |
description | A rust app for launching a web terminal that uses websocket. |
homepage | |
repository | https://github.com/j-p-d-e-v/web-terminal |
max_upload_size | |
id | 1258771 |
size | 97,384 |
A rust app for launching a web terminal that uses websocket.
cargo
cargo run -- --host 0.0.0.0 --port 3032
cargo build --release
cargo run -- --help
Parameters when running the web terminal app.
Usage: web-terminal [OPTIONS]
Options:
--host <HOST>
The ip of the server.
[default: 127.0.0.1]
--port <PORT>
The port of the server.
[default: 3030]
--heartbeat-interval <HEARTBEAT_INTERVAL>
The heartbeat interval.
[default: 30]
-h, --help
Print help (see a summary with '-h')
-V, --version
Print version
cargo
cargo run -- --host 0.0.0.0 --port 3032
Execute binary
./target/release/web-terminal --host 0.0.0.0 --port 3032
You can simulate the web terminal using the provided frontend app.
docker-compose -f docker-compose up -d
docker ps
Example:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
85a2f260ffda node:latest "docker-entrypoint.s…" 20 hours ago Up 20 hours 0.0.0.0:7060->80/tcp web-terminal-termi-1
docker exec -it e6b8bedb2193 "bash"
yarn dev
http://localhost:7060
JP Mateo (jpmateo022@gmail.com)