59 lines
1.0 KiB
Markdown
59 lines
1.0 KiB
Markdown
# RestAPI Client
|
|
|
|
(https://hurl.dev/)
|
|
|
|
```sh
|
|
yum install -y pkg-config gcc openssl-devel libxml2-devel git
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
source "$HOME/.cargo/env"
|
|
git clone --depth 1 https://github.com/Orange-OpenSource/hurl.git --branch 4.0.0
|
|
cd hurl
|
|
cargo install hurl
|
|
hurl -V
|
|
```
|
|
|
|
|
|
# Restfox
|
|
|
|
(https://github.com/flawiddsouza/Restfox)
|
|
|
|
## Install
|
|
|
|
```sh
|
|
git clone https://github.com/flawiddsouza/Restfox
|
|
cd packages/ui
|
|
npm i
|
|
npm run build-web-standalone
|
|
cd ../web-standalone
|
|
npm i
|
|
npm start
|
|
```
|
|
|
|
## Auto start at boot
|
|
|
|
`/lib/systemd/system/restfox.service`
|
|
|
|
```ini
|
|
[Unit]
|
|
Description=RestFox REST POI CLient
|
|
Documentation=https://github.com/flawiddsouza/Restfox
|
|
After=network.target
|
|
|
|
[Service]
|
|
Environment=NODE_PORT=4004
|
|
Type=simple
|
|
User=root
|
|
ExecStart=/usr/bin/node /root/Restfox/packages/web-standalone/app.js
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
```
|
|
|
|
```sh
|
|
systemctl daemon-reload
|
|
systemctl start restfox
|
|
systemctl status restfox
|
|
systemctl enable restfox
|
|
```
|