瀏覽代碼

docs: expand README with detailed information

Adam 3 月之前
父節點
當前提交
236f1d2f2f
共有 1 個文件被更改,包括 55 次插入1 次删除
  1. 55 1
      README.md

+ 55 - 1
README.md

@@ -2,4 +2,58 @@
 
 This is my CMS. Why? Because I can.
 
-Set-
+Set-up:
+1. install the actual cms page:
+```
+npm install
+npm run build
+```
+
+2. install and host backend:
+```
+cd backend
+npm install
+```
+
+make systemd unit:
+```
+[Unit]
+Description=Gooneral Wheelchair CMS Backend
+After=network.target
+
+[Service]
+Type=simple
+User=root
+WorkingDirectory=/var/www/gooneral-wheelchair/backend
+Environment=NODE_ENV=production
+ExecStart=/usr/bin/node start-production.js
+Restart=always
+RestartSec=10
+StandardOutput=syslog
+StandardError=syslog
+SyslogIdentifier=gooneral-wheelchair
+
+[Install]
+WantedBy=multi-user.target
+```
+
+3. host your websoot:
+```
+goonblog.thevakhovske.eu.org {
+    root * /var/www/gooneral-wheelchair/dist
+    encode gzip zstd
+    file_server
+
+    # API routes - proxy to backend
+    handle /api/* {
+        reverse_proxy localhost:3001
+    }
+
+    # Health check endpoint
+    handle /health {
+        reverse_proxy localhost:3001
+    }
+}
+```
+
+rat sex 👍