bowu / analyze_code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running Backend

1. Clone Repo

git clone https://github.com/bowu/analyze_code.git

2. Install Dependencies (you may want to create a new virtual env)

cd root/backend
pip install -r requirements.txt

3. Set up OpenAI API key

export OPENAI_API_KEY=YOUR_KEY

4. Run

uvicorn app:app --reload

Running Frontend

1. Install Dependencies

cd root
npm i

2. Run App

npm run dev

3. Analyze code in a folder

Use your browser and visit http://localhost:3000
Type "/inspect code_path" (e.g., /inspect /Users/nerd/buggy_code)
Then Type any question about the code

4. Manually check the reports

Code descriptions are stored at code_path/_comments
Code problem/bug reports are stored at code_path/_problems

About

License:MIT License


Languages

Language:TypeScript 76.2%Language:Python 21.2%Language:Dockerfile 1.3%Language:JavaScript 1.1%Language:CSS 0.1%