47 lines
740 B
Markdown
47 lines
740 B
Markdown
# 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
|
|
```
|
|
|
|
* Todo: fix wrong content type header
|
|
|