Files
cloudlense/frontend
Dennis 379d9aa13c feat: add admin billing system, SMTP email, rename to CloudLense
- Add payments, coupons, credits, invoices management to admin dashboard
- Add 7 new admin tabs: Overview, Users, Orgs, Payments, Coupons, Credits, Invoices
- Replace Resend with SMTP email via nodemailer (info@dk0.dev / mail.dk0.dev)
- Add professional branded email templates (alerts, welcome, invoice, credit, password reset)
- Add database migration for payments, coupons, coupon_redemptions, credit_transactions, invoices tables
- Add credit_balance column to organizations
- Add RLS policies for all new tables
- Add 4 new API routes: /api/admin/{payments,coupons,credits,invoices}
- Rename project from website-monitoring to CloudLense
- Update all package.json names and README

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-07 01:04:37 +01:00
..

Website Monitoring Platform

This project is a modern website monitoring platform built with Next.js (App Router) for the frontend and a Dockerized Express-based Lighthouse scan worker for performance, SEO, and accessibility analysis.

Features

  • Add and manage websites in a dashboard
  • Trigger Lighthouse scans for any website via a button in the dashboard
  • View scan results directly in the frontend
  • Local development with Docker for the scan worker (Chromium included)
  • Modular architecture for future automation, cron jobs, and database integration

Getting Started

Prerequisites


1. Install Dependencies

cd frontend
npm install

2. Start the Lighthouse Scan Worker (Docker)

Build and run the scan worker container (from the project root):

docker-compose up --build scan-worker

This will:

  • Build the worker image (installs Node.js dependencies and Chromium)
  • Start the Express server on port 5001 inside the container

3. Start the Next.js Frontend

In a separate terminal:

cd frontend
npm run dev