- Install dependencies (do this after first download or after dependency changes)
npm install
- Start development environment
npm run dev
Pipe Bomb Web Interface is developed using Vite, so any changes you make will immediately be reflected in your browser.
- Install dependencies (do this after first download or after dependency changes)
npm install
- Build website files
npm run build
Compiled HTML, CSS and JS files are located in the dist
directory.
Below is a very basic configuration for hosting the Pipe Bomb Web Interface using NGINX. To use this config, store the files that were compiled via the instructions above in the /var/www/PipeBomb-Interface/html
directory. Manually create any directories that don't exist along the way.
server {
listen 80;
listen [::]:80;
root /var/www/PipeBomb-Interface/html;
index index.html;
server_name _; # replace "_" with your domain name if hosted on server with other websites
location / {
try_files $uri /index.html;
}
location = /Config.json {
add_header Access-Control-Allow-Origin *;
try_files $uri =404;
}
}