Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.47 KB

File metadata and controls

45 lines (34 loc) · 1.47 KB

Web

This directory contains the Next.js frontend application for Code Lens. It's responsible for visualizing the codebase and providing the user interface.

Getting Started

To get the web application running locally, follow these steps:

  1. Install dependencies:
    bun install
  2. Set up environment variables:
  • Create a .env file by copying the .env.example: bash cp .env.example .env
  • Update the .env file with your credentials.
  1. Run the development server:

    bun run dev

    This will start the development server on http://localhost:3000.

Architecture

The web application is built with Next.js and uses the following key technologies:

  • React Flow: For rendering the interactive graph visualization.
  • Tailwind CSS: For styling the application.
  • TypeScript: For type-safe code.
  • TanStack Query: For data fetching and caching.
  • CopilotKit: For integrating AI-powered features.

The application is structured as follows:

  • src/app: Contains the main application pages and layouts.
  • src/components: Contains reusable UI components.
  • src/features: Contains the main features of the application, such as the canvas and dashboard.
  • src/hooks: Contains custom React hooks.
  • src/lib: Contains utility functions and authentication logic.
  • src/providers: Contains React context providers.
  • src/utils: Contains utility functions.