Files
go-service/cmd/server/web/README.md
2026-06-17 09:53:29 +03:00

37 lines
995 B
Markdown
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
### 1. Установка Node.js и npm на Raspberry Pi
#### Добавление официального репозитория 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```
```bash
chmod +x node_modules/.bin/tsc
```