https://github.com/soumyadip007/lighthouse-as-a-service-using-nodejs
Lighthouse as a Service (LaaS) – a scalable Node.js solution automating website performance audits with Google's Lighthouse. Seamlessly integrate into projects for routine audits, ensuring optimal web performance.
https://github.com/soumyadip007/lighthouse-as-a-service-using-nodejs
Last synced: 8 months ago
JSON representation
Lighthouse as a Service (LaaS) – a scalable Node.js solution automating website performance audits with Google's Lighthouse. Seamlessly integrate into projects for routine audits, ensuring optimal web performance.
- Host: GitHub
- URL: https://github.com/soumyadip007/lighthouse-as-a-service-using-nodejs
- Owner: soumyadip007
- License: apache-2.0
- Created: 2023-12-23T13:59:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-23T17:19:20.000Z (almost 2 years ago)
- Last Synced: 2025-01-06T00:13:04.507Z (9 months ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lighthouse-as-a-Service-using-NodeJs
Lighthouse as a Service (LaaS) – a scalable Node.js solution automating website performance audits with Google's Lighthouse. Seamlessly integrate into projects for routine audits, ensuring optimal web performance.## Project Structure

### `src` Directory
- **controllers:** Handles HTTP requests and interfaces with services.
- **services:** Encapsulates business logic and external dependencies.
- **utils:** Includes utility functions shared across the application.
- **app.js:** Main entry point for the application.### `reports` Directory
- An empty directory to store generated reports.### `.gitignore` File
- Specifies patterns to be ignored by Git.### `package.json` File
- Contains metadata about the project and its dependencies.### `README.md` File
- Documentation and instructions for running the project.## Components
### 1. `lighthouseController.js`
- Handles HTTP requests related to Lighthouse functionality.### 2. `lhcliController.js`
- Handles HTTP requests related to Lighthouse CLI functionality.### 3. `common.js`
- Contains common functions and imports shared across different services.### 4. `lighthouseService.js`
- Contains functions related to Lighthouse automation and report generation.### 5. `fileUtils.js`
- Utility functions for working with files (e.g., reading, writing).### 6. `app.js`
- Main entry point for the application, where HTTP server setup and routes are defined.