Installation Documentation: OWASP Juice Shop
Environment: Ubuntu Server Technology: Node.js + Express + Angular
0views
Environment: Ubuntu Server Technology: Node.js + Express + Angular
1. Node.js Installation
Sección titulada «1. Instalación de Node.js»OWASP Juice Shop requires a modern version of Node.js (v18 or higher). We will install version 22.
sudo apt updatecurl -fsSL [https://deb.nodesource.com/setup_22.x](https://deb.nodesource.com/setup_22.x) | sudo -E bash -sudo apt install -y nodejs
# Verificar versiónnode -v# Debe ser v20+2. Code Deployment
Sección titulada «2. Despliegue del Código»cd /var/www/htmlsudo git clone [https://github.com/juice-shop/juice-shop.git](https://github.com/juice-shop/juice-shop.git)cd juice-shop3. Installation and Build
Sección titulada «3. Instalación y Compilación (Build)»This step is critical. If it fails, the server will not start (Error CONNECTION_REFUSED). We must execute npm install with write permissions to generate the build folder.
# 1. Asignar propiedad a tu usuario actual para poder compilarsudo chown -R $USER:$USER /var/www/html/juice-shop
# 2. Instalar dependencias y compilar la aplicaciónnpm install
# 3. Devolver la propiedad al usuario web (seguridad)sudo chown -R www-data:www-data /var/www/html/juice-shop4. Service Management (Start and Stop)
Sección titulada «4. Gestión del Servicio (Iniciar y Parar)»OWASP Juice Shop is not a system service (like Apache); it is a Node.js process that we must keep active in the terminal.
Start OWASP Juice Shop
Sección titulada «Iniciar OWASP Juice Shop»cd /var/www/html/juice-shopsudo -u www-data npm startWe will wait until we see the message: info: Server listening on port 3000
Web Access: http://TU_IP:3000
Stop OWASP Juice Shop
Sección titulada «Detener OWASP Juice Shop»In the terminal where it is running, we will press:
Ctrl + C

