Your intelligent partner for mastering NumPy! This AI-powered application, built with the Gemini API, helps you generate, understand, and debug NumPy code through a simple, conversational interface.
This project was bootstrapped from Google AI Studio.
- Natural Language to NumPy: Describe what you want to do in plain English, and get the corresponding NumPy code.
- Code Explanation: Paste a NumPy snippet and receive a detailed explanation of what it does.
- Interactive Chat: A user-friendly interface for interacting with the AI.
- Powered by Gemini: Leverages Google's powerful Gemini model for accurate and context-aware responses.
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
- Node.js (v18 or later recommended)
- npm (comes with Node.js)
- A Gemini API Key.
-
Clone the repository (or download the source):
git clone <your-repository-url> cd <repository-folder>
-
Install dependencies:
npm install
-
Set up your environment variables: Create a file named
.env.localin the root of your project and add your Gemini API key:GEMINI_API_KEY="YOUR_API_KEY_HERE"Important: The
.gitignorefile is configured to prevent this file from being committed. Never share your API key publicly. -
Run the development servers: This project has a separate frontend and backend. You'll need to run them in two separate terminal windows.
Terminal 1: Start the Backend
npm run dev:backend
Terminal 2: Start the Frontend
npm run dev:frontend
Open the local URL provided by the frontend server (usually http://localhost:5173) in your browser to see the result.
- Frontend: React + Vite
- Backend: Express.js
- AI: Google Gemini API
- Runtime: Node.js