CodeMap is an interactive tool designed to aid individuals in learning new projects, onboarding onto codebases, and understanding source code structures. It provides an engaging and visual approach with interactive graphs, detailed descriptions, and overviews to enhance comprehension. Integrated with ChatGPT, users can gain deeper insights and context about the code while browsing.
- Interactive Graphs: Visual representations of code structure with clickable components for detailed exploration.
- Descriptions & Overviews: Contextual information to help users understand various parts of the codebase.
- ChatGPT Integration: Built-in ChatGPT functionality for real-time assistance and explanations.
Before you get started, ensure you have the following installed:
-
Node.js
Download and install Node.js from the official Node.js website. Follow the installation instructions for your operating system.
-
OpenAI API Key
To use the ChatGPT integration, you need an OpenAI API key. Sign up at OpenAI and obtain your API key.
To run CodeMap locally, follow these steps:
- Install Dependencies:
cd CodeMap/frontend
npm install- Create a .env File: In the root directory of frontend folder, create a .env file and add your OpenAI API Key:
// .env
VITR_API_KEY=your_api_key_here- Start Application
npm startThe project is organized as follows:
src/
└── gpt/
└── frontend/
├── components/
└── features/
└── codemapper/
├── business-components/
└── function-call/
└── ...Client: React, TailwindCSS, NodeJS
Server: No server side code