Skip to content

MediaComem/comem-archidep-gallery

Repository files navigation

Image gallery

⚠️ DO NOT RUN THIS APPLICATION ANYWHERE UNDER ANY CIRCUMSTANCES ⚠️

Setup

  • Connect to the server with SSH.

  • Install Node.js 20.x:

    $> sudo apt-get update
    $> sudo apt-get install -y ca-certificates curl gnupg
    $> sudo mkdir -p /etc/apt/keyrings
    $> curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
    $> echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
    $> sudo apt-get update
    $> sudo apt-get install nodejs -y
  • Install Git, clone the application and install its dependencies:

    $> sudo apt-get install -y git
    $> git clone https://github.com/MediaComem/comem-archidep-gallery.git
    $> cd comem-archidep-gallery
    $> npm ci
  • Configure the application to listen on all network interfaces:

    $> printf 'GALLERY_LISTEN_HOST=0.0.0.0\nGALLERY_LISTEN_PORT=80\n' > .env

Run the application

  • Connect to the server with SSH and move into the application directory if necessary:

    $> cd comem-archidep-gallery
  • Run the application:

    ⚠️ DO NOT DO THIS ⚠️

    $> sudo node ./server.js

Releases

No releases published

Packages

No packages published