web-audit

Codacy Badge

Web Audit is a tool to automatically audit your web projects. Currently lighthouse is used under the hood. More integrations are coming

Overview Detail

Requires

This uses a postgres database and a minio asset bucket.

Docker

Start docker

docker run --env-file .env -p PORT:3000 -e "NEXTAUTH_URL=http://localhost:PORT" --name web-audit-web faebeee/web-audit-web:latest

Update docker

docker stop web-audit-web
docker rm web-audit-web
docker rmi faebeee/web-audit-web:latest
docker pull faebeee/web-audit-web:latest

and then reuse the command from Start docker

Docker-compose

Run docker-compose up

Then run npm run cli:create-user which will create a new admin user with the password admin

Dev environment

Start the minio and postgres container with

  • docker-compose up database
  • docker-compose up minio
  • npx prisma migrate dev
  • Go to localhost:9001 and create a new bucket and add the credentials to the env (see below)
  • npm run build
  • npm run start

Env variables

NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=***
DATABASE_URL=***
MINIO_HOST=***
MINIO_BUCKET=***
MINIO_ACCESS_KEY=***
MINIO_SECRET_KEY=***

THEME config

Set the env var NEXT_PUBLIC_THEME_MODE to dark or light