Trendyol / perfanalytics

Web Performance Metrics
82 stars 6 forks source link
lighthouse-audits nodejs perfanalytics performance-metrics performance-monitoring performance-visualization react typescript

PerfAnalytics

PerfAnalytics is an open-source project aimed at measuring and analyzing performance metrics. It provides a comprehensive solution for gathering performance data, visualizing insights, and making informed optimizations. The project is built using NestJS for the backend, Kafka for data streaming, and Next.js for the client-side interface.

Features

Getting Started

Follow these steps to get PerfAnalytics up and running:

Prerequisites

Installation

  1. Clone the PerfAnalytics repository:
    git clone https://github.com/Trendyol/perfanalytics.git
  2. Navigate to the project directory:
    cd perfanalytics
  3. Install backend dependencies:
    cd backend
    yarn install
  4. Install frontend dependencies:
    cd ../client
    yarn install
  5. Install lighthouse dependencies:
    cd ../lighthouse
    yarn install

Configuration

  1. Open the backend/.env file and configure any necessary environment variables, such as database connections or API keys.

  2. Open the lightouse/.env file and configure any necessary environment variables, such as Kafka connection information.

  3. Open the client/.env.local file and set any environment variables required for the frontend.

Running the Application

  1. Start the backend server:
    cd backend
    yarn start:dev
  2. Start the frontend server:
    cd client
    yarn dev
  3. Start the lighthouse server:
    cd lighthouse
    yarn start

Continuous Integration

The project includes a GitHub Actions workflow for continuous integration. The workflow includes the following jobs:

Contributing

We welcome contributions! If you'd like to contribute to PerfAnalytics.

License

This project is licensed under the MIT License.