Workstations Service

This commit is contained in:
Henrik Brüsecke 2026-08-29 18:18:56 +03:00
parent 9a2bd2bffd
commit 2efe5cd224
77 changed files with 978 additions and 2 deletions

5
docs/backend/index.md Normal file
View file

@ -0,0 +1,5 @@
# Backend
| Service | Language | Toolchain | Host | Port | Last Updated |
| --- | --- | --- | --- | --- | --- |
| [Workstations](workstations.md) | JavaScript | Node.js | 192.168.88.228 | 50000 | 2026-09-02 |

View file

@ -0,0 +1,89 @@
# Workstations
``` bash
cd /opt/instant-workstation/backend/workstations
```
## Installation
=== "Fedora"
``` bash
sudo dnf install nodejs npm
```
=== "Ubuntu"
``` bash
sudo apt install nodejs npm
```
``` bash
npm ci
```
``` bash
sudo ln -s /opt/instant-workstation/infrastructure/systemd/workstations.service /etc/systemd/system/.
```
``` bash
sudo systemctl daemon-reload
```
``` bash
sudo systemctl enable workstations
```
``` bash
sudo systemctl start workstations
```
``` bash
sudo systemctl status workstations
```
## Updates
### Packages
``` bash
npm outdated
```
``` bash
npm update
```
``` bash
git add package.json package-lock.json
```
``` bash
git commit -m "Workstations Service: Package Updates"
```
``` bash
git push
```
### Service
``` bash
git pull
```
``` bash
npm ci
```
``` bash
sudo systemctl daemon-reload
```
``` bash
sudo systemctl restart workstations
```
``` bash
sudo systemctl status workstations
```

View file

@ -1 +1,31 @@
# Hardware
# Overview
## Installation
=== "Fedora"
``` bash
sudo dnf install git
```
=== "Ubuntu"
``` bash
sudo apt install git
```
``` bash
cd /opt
```
``` bash
sudo mkdir instant-workstation
```
``` bash
sudo chown henrik:henrik instant-workstation
```
``` bash
git clone https://code.instantworkstation.com/Henrik/instant-workstation.git instant-workstation
```