This fork adds a number of ASF-specific features, such as:
The recommended dev setup runs MongoDB in a container and the Vulnogram app on the host.
Install Node dependencies:
npm install
Copy example-asf.env to .env, then open .env and uncomment the development overrides at the top of the file:
cp example-asf.env .env
Generate a self-signed TLS certificate (required because the oauth.apache.org callback URL must use HTTPS):
openssl req -x509 -newkey rsa:2048 -nodes \ -keyout key.pem -out cert.pem -days 365 \ -subj "/CN=localhost" \ -addext "subjectAltName=DNS:localhost,IP:127.0.0.1"
The browser will warn about the untrusted certificate on first visit; click through to accept it.
Start MongoDB in a container:
docker compose up -d vulnogram-mongo
Start the app on the host:
node app.js
The app listens on http://0.0.0.0:3555 by default and uses oauth.apache.org for authentication.