https://github.com/akaliutau/remote-controller
Microservice for Remote control of local apps
https://github.com/akaliutau/remote-controller
java-8 microservice remote-control spring-boot ssh
Last synced: 4 months ago
JSON representation
Microservice for Remote control of local apps
- Host: GitHub
- URL: https://github.com/akaliutau/remote-controller
- Owner: akaliutau
- License: mit
- Created: 2021-05-09T15:34:05.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-09T15:34:59.000Z (almost 5 years ago)
- Last Synced: 2025-01-11T00:13:31.125Z (about 1 year ago)
- Topics: java-8, microservice, remote-control, spring-boot, ssh
- Language: Java
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
About
==================
Remote controller is a PoC for possibility to create a web service which could be used as a access point inside corporate network to automate different applications/performing tasks, or to serve as a a part of CI/CD infrastructure.
This web app designed as a simple Spring Boot project designed as a web service with 2 end points and asynchronous process execution functionality.
DB configuration
==================
In the case of PostgresSQL as the main database of service create a database rpadata first:
```
psql -U postgres
create database rpadata;
```
List all databases to see a newly created database on the list:
```
\l
```
To connect to a database use the command:
```
\c rpadata
```
To see the table's scheme use the command:
```
\d
select * from nodes;
select * from processes;
select * from process_audit;
```
REST web interface
==================
All resources are available from two end-points:
```
/processes
/audit/{table_name}
```
Example of requests:
```
POST https://localhost:8443/processes
{
"bpId": "d3e7258a-2b70-4e92-bd19-7f3de7612878",
"name": "test 5",
"runScriptName": "java -version",
"processStatus": "CREATED",
"lock": false
}
GET https://localhost:8443/audit/process_audit
```
Starting
==================
Start webservice:
```
java -jar
```
The service will start on localhost:8443
Node configuration
==========================
Credentials to nodes are saved in a separate service - KeyService.
For demonstration purpose creds are taken from resources/application.properties file, section ## node creds