https://github.com/levnagornov/poc-command-trigger-app
This is POC app, that shows that it's possible to trigger a command on a Linux machine remotely with a backend app via HTTP
https://github.com/levnagornov/poc-command-trigger-app
docker docker-compose flask python ubuntu
Last synced: 17 days ago
JSON representation
This is POC app, that shows that it's possible to trigger a command on a Linux machine remotely with a backend app via HTTP
- Host: GitHub
- URL: https://github.com/levnagornov/poc-command-trigger-app
- Owner: levnagornov
- Created: 2025-09-16T12:44:19.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2025-11-08T10:30:49.000Z (8 months ago)
- Last Synced: 2026-06-10T01:38:32.012Z (17 days ago)
- Topics: docker, docker-compose, flask, python, ubuntu
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A proof of concept app "Command trigger"
This is POC app, that shows that it's possible to trigger a command on a Linux machine remotely with a backend app via HTTP.
The backend is built with `Flask`, for the Linux OS I used `Ubuntu`.
## How to install
Install Docker on your machine first. Then you can use Docker to start the whole application:
```bash
docker compose up --build
```
## Usage
Send HTTP requests to the backend. You can use `curl` as shown below. Or use GUI Postman app for API requests:
```bash
curl -X POST http://localhost:5001/run \
-H "Content-Type: application/json" \
-d '{"cmd":"ls /"}'
curl -X POST http://localhost:5001/run \
-H "Content-Type: application/json" \
-d '{"cmd":"echo hello world"}'
curl -X POST http://localhost:5001/run \
-H "Content-Type: application/json" \
-d '{"cmd":"bash --version"}'
```
Created by Lev Nagornov.