Add install_everything.sh, update README.md, WIKI.md
This commit is contained in:
63
README.md
63
README.md
@@ -49,6 +49,64 @@ From a non‑developer perspective:
|
||||
- Lucide is a library of clean, modern icons (like arrows, hearts, or search magnifying glasses). It’s the visual garnish that makes apps feel intuitive.
|
||||
|
||||
|
||||
## Quick Start (One-Line Install)
|
||||
|
||||
### From Web (on Raspberry Pi with network access)
|
||||
|
||||
```bash
|
||||
# Option 1: Direct clone and run
|
||||
git clone https://github.com/your-repo/tck_rtu.git /opt/tck_rtu
|
||||
cd /opt/tck_rtu
|
||||
./install_everything.sh
|
||||
|
||||
# Option 2: From custom web server
|
||||
# Place install_everything.sh on your web server at:
|
||||
# http://tckrtuiyo:3000/tck/tck_rtu/install_everything.sh
|
||||
# Then run:
|
||||
curl -sL http://tckrtuiyo:3000/tck/tck_rtu/install_everything.sh | bash
|
||||
|
||||
# Option 3: From GitHub raw (replace with actual repo URL)
|
||||
curl -sL https://raw.githubusercontent.com/your-repo/main/install_everything.sh | bash
|
||||
```
|
||||
|
||||
### Manual Install
|
||||
|
||||
```bash
|
||||
# 1. Clone repository
|
||||
git clone https://github.com/your-repo/tck_rtu.git /opt/tck_rtu
|
||||
cd /opt/tck_rtu
|
||||
|
||||
# 2. Install Node.js (if not installed)
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
|
||||
sudo apt-get install -y nodejs
|
||||
|
||||
# 3. Install dependencies
|
||||
cd sample_interface
|
||||
npm install
|
||||
|
||||
# 4. Run
|
||||
cd ..
|
||||
./start.sh
|
||||
```
|
||||
|
||||
### Web Server Setup (for Option 2)
|
||||
|
||||
If you want to serve the install script from a local web server:
|
||||
|
||||
```bash
|
||||
# Place the script in your web root
|
||||
sudo cp install_everything.sh /var/www/html/tck/tck_rtu/
|
||||
|
||||
# Start nginx
|
||||
sudo systemctl start nginx
|
||||
|
||||
# Or use Python
|
||||
cd /var/www/html/tck/tck_rtu
|
||||
python3 -m http.server 3000
|
||||
```
|
||||
|
||||
Then access via: `http://<your-server>:3000/tck/tck_rtu/install_everything.sh`
|
||||
|
||||
## Getting Started
|
||||
---
|
||||
### Prerequisites
|
||||
@@ -108,8 +166,9 @@ The app detects display mode by port:
|
||||
|
||||
| Port | Mode | Resolution |
|
||||
|------|------|------------|
|
||||
| 8080 | Kiosk | 1024x600 (fixed) |
|
||||
| 9090 | Remote | Full HD (responsive) |
|
||||
| 8888 | Kiosk | 1024x600 (fixed, for 7" touchscreen) |
|
||||
| 9090 | Remote | Full HD (responsive, for PC access) |
|
||||
| 5173 | Dev | Development server |
|
||||
|
||||
## Bundle Size
|
||||
|
||||
|
||||
Reference in New Issue
Block a user