A modern Looking Glass solution.
-
Install Node.js 21 or higher:
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" nvm install node
-
Download Dependencies:
sudo npm install -g pm2 bun
-
Clone the Repository:
git clone https://github.com/LumenPanel/looking-glass
-
Navigate to the Frontend Folder:
cd <repository-folder>/frontend
-
Install Node Modules:
bun install
-
Edit Configuration (config.json): Use your preferred editor to modify the configuration files as needed.
vim config.json
-
Build and Run the App:
bun run build pm2 start "bun start" --name lookingglass pm2 save
-
Access the App: The app should now be running on port 3000.
-
Optional - Set Up a Reverse Proxy: Configure a reverse proxy to access the website from a domain.
-
Install Node.js:
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" nvm install node
-
Download Dependencies:
sudo npm install -g pm2 bun # If you are using a debian based distro: sudo apt-get install bird traceroute mtr -y # If you are using a fedora based distro: sudo dnf install bird traceroute-3 mtr
-
Clone the Repository:
git clone https://github.com/LumenPanel/looking-glass
-
Navigate to the Backend Folder:
cd <repository-folder>/backend
-
Install Node Modules:
bun install
-
Run the App:
pm2 start "bun start" --name lookingglass-backend pm2 save
-
Access the App: The app should now be running on port 8080.
-
Optional - Set Up SSL: Configure a reverse proxy to enable SSL, especially if the website runs on
https://
.
Lumen Looking Glass is licensed under the MIT license.