Skip to content

LumenPanel/looking-glass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Looking Glass

Lumen Looking Glass

A modern Looking Glass solution.

Installation

Website

  1. 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
  2. Download Dependencies:

    sudo npm install -g pm2 bun
  3. Clone the Repository:

    git clone https://github.com/LumenPanel/looking-glass
  4. Navigate to the Frontend Folder:

    cd <repository-folder>/frontend
  5. Install Node Modules:

    bun install
  6. Edit Configuration (config.json): Use your preferred editor to modify the configuration files as needed.

    vim config.json
  7. Build and Run the App:

    bun run build
    pm2 start "bun start" --name lookingglass
    pm2 save
  8. Access the App: The app should now be running on port 3000.

  9. Optional - Set Up a Reverse Proxy: Configure a reverse proxy to access the website from a domain.

Backend (Install on Each Node)

  1. 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
  2. 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
  3. Clone the Repository:

    git clone https://github.com/LumenPanel/looking-glass
  4. Navigate to the Backend Folder:

    cd <repository-folder>/backend
  5. Install Node Modules:

    bun install
  6. Run the App:

    pm2 start "bun start" --name lookingglass-backend
    pm2 save
  7. Access the App: The app should now be running on port 8080.

  8. Optional - Set Up SSL: Configure a reverse proxy to enable SSL, especially if the website runs on https://.

License

Lumen Looking Glass is licensed under the MIT license.