Files
go-service/cmd/server/web/README.md.save

36 lines
991 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# GPIO Monitor Web Interface
Веб-интерфейс для мониторинга GPIO и видеопотока с камеры.
## Требования
- Node.js 20.x или выше
- npm 10.x или выше
- Go 1.21+ (для сборки сервера)
## Установка и настройка TypeScript
### 1. Установка Node.js и npm на Raspberry Pi
```bash
# Добавление официального репозитория NodeSource
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
# Установка Node.js и npm
sudo apt install -y nodejs
# Проверка установки
node --version # v20.20.2
npm --version # 10.8.2
### 2.Инициализация npm проекта
# Переход в директорию с веб-файлами
cd ~/temp/golang/cmd/server/web
# Инициализация package.json
npm init -y
# Установка TypeScript и типов Node.js
npm install -D typescript @types/node