{"id":26851736,"url":"https://github.com/hum2a/pitch-deck-classifier","last_synced_at":"2026-04-02T03:03:52.606Z","repository":{"id":262846668,"uuid":"888484744","full_name":"Hum2a/pitch-deck-classifier","owner":"Hum2a","description":"This is a full-stack application for analyzing and ranking pitch decks. ","archived":false,"fork":false,"pushed_at":"2025-03-21T17:22:25.000Z","size":119616,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T16:21:48.713Z","etag":null,"topics":["firebase","flask","javascript","mongodb","nodejs","python","react"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hum2a.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-14T13:33:31.000Z","updated_at":"2025-03-21T17:22:52.000Z","dependencies_parsed_at":"2024-11-14T16:46:58.790Z","dependency_job_id":null,"html_url":"https://github.com/Hum2a/pitch-deck-classifier","commit_stats":null,"previous_names":["hum2a/pitch-deck-classifier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hum2a/pitch-deck-classifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hum2a%2Fpitch-deck-classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hum2a%2Fpitch-deck-classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hum2a%2Fpitch-deck-classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hum2a%2Fpitch-deck-classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hum2a","download_url":"https://codeload.github.com/Hum2a/pitch-deck-classifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hum2a%2Fpitch-deck-classifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["firebase","flask","javascript","mongodb","nodejs","python","react"],"created_at":"2025-03-30T22:33:33.535Z","updated_at":"2026-04-02T03:03:52.586Z","avatar_url":"https://github.com/Hum2a.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pitch Deck Analyzer\n\nThis is a full-stack application for analyzing and ranking pitch decks. The application has a React frontend and a Python Flask backend. The backend processes PDF pitch decks and ranks them based on analysis criteria, while the frontend provides a user-friendly interface for uploading, analyzing, and managing pitch decks.\n\n## Table of Contents\n1. [Prerequisites](#prerequisites)\n2. [Project Setup](#project-setup)\n3. [Backend - Python Flask Setup](#backend---python-flask-setup)\n4. [Frontend - React Setup](#frontend---react-setup)\n5. [Running the Application](#running-the-application)\n6. [API Endpoints](#api-endpoints)\n7. [Usage](#usage)\n8. [Troubleshooting](#troubleshooting)\n\n---\n\n## Prerequisites\n\nTo run this application, you need:\n- [Node.js](https://nodejs.org/en/download/) (for React frontend)\n- [Python 3.x](https://www.python.org/downloads/) (for Flask backend)\n- [MongoDB](https://www.mongodb.com/try/download/community) (for data storage)\n- [pip](https://pip.pypa.io/en/stable/installation/) (Python package manager)\n\n## Project Setup\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/your-repository-url/pitch-deck-analyzer.git\n   cd pitch-deck-analyzer\n   ```\n\n2. The project structure should look like this:\n   ```\n   pitch-deck-analyzer/\n   ├── backend/       # Python Flask backend\n   └── frontend/      # React frontend\n   ```\n\n## Backend - Python Flask Setup\n\n1. **Navigate to the backend directory**:\n   ```bash\n   cd backend\n   ```\n\n2. **Install dependencies**:\n   - Set up a virtual environment (optional but recommended):\n     ```bash\n     python -m venv venv\n     source venv/bin/activate  # On Windows, use `venv\\Scripts\\activate`\n     ```\n   - Install Python packages:\n     ```bash\n     pip install -r requirements.txt\n     ```\n\n3. **Configure MongoDB**:\n   - Ensure MongoDB is running on your system.\n   - In `app.py`, adjust the MongoDB connection string as needed:\n     ```python\n     client = MongoClient(\"mongodb://localhost:27017/\")\n     ```\n\n4. **Set up OpenAI API Key**:\n   - Add your OpenAI API key in `app.py`:\n     ```python\n     openai.api_key = \"YOUR_OPENAI_API_KEY\"\n     ```\n\n5. **Run the Flask server**:\n   ```bash\n   python app.py\n   ```\n   - The server should start on `http://localhost:5000`.\n\n## Frontend - React Setup\n\n1. **Navigate to the frontend directory**:\n   ```bash\n   cd ../frontend\n   ```\n\n2. **Install dependencies**:\n   ```bash\n   npm install\n   ```\n\n3. **Configure API URL**:\n   - In the frontend source code, ensure all API calls point to `http://localhost:5000` (default Flask server URL).\n\n4. **Run the React application**:\n   ```bash\n   npm start\n   ```\n   - The React app should start on `http://localhost:3000`.\n\n## Running the Application\n\nWith both backend and frontend running:\n- Go to `http://localhost:3000` in your browser to view the application.\n- The frontend communicates with the backend at `http://localhost:5000` for API requests.\n\n## API Endpoints\n\nThe backend provides several endpoints for interacting with the pitch decks:\n\n- **File Upload and Analysis**:\n  - `POST /api/upload`: Upload a new pitch deck (PDF).\n  - `POST /api/analyze`: Analyze an uploaded pitch deck.\n  - `POST /api/round_two_analysis`: Run a detailed analysis on pitch decks.\n  \n- **File Management**:\n  - `GET /api/local-uploads`: List all locally stored uploads.\n  - `DELETE /api/delete/\u003cfilename\u003e`: Delete an uploaded file by filename.\n  \n- **Analysis Retrieval and Ranking**:\n  - `GET /api/r2_analyses`: Retrieve all Round 2 analysis files.\n  - `GET /api/r2_analyses/\u003cfilename\u003e`: Retrieve the analysis details of a specific pitch deck.\n  \n## Usage\n\n1. **Upload Pitch Decks**:\n   - Use the upload form on the frontend to select and upload PDF files.\n\n2. **Analyze Pitch Decks**:\n   - Click the **Analyze** button on individual files to run an analysis on a specific pitch deck.\n   - Click the **Analyze All** button to analyze all uploaded pitch decks in one go.\n\n3. **View Rankings**:\n   - The frontend displays a ranked list of pitch decks based on analysis scores.\n\n4. **Delete Files**:\n   - Delete individual files by clicking the **Delete** button.\n   - Delete all files by clicking the **Delete All** button.\n\n## Troubleshooting\n\n1. **Backend Errors**:\n   - Check if MongoDB is running.\n   - Confirm the OpenAI API key is correctly configured.\n   - Check Flask server logs for errors.\n\n2. **Frontend Errors**:\n   - Ensure the frontend API URLs are correct.\n   - Check console logs in the browser for debugging.\n\n3. **CORS Issues**:\n   - If CORS errors occur, ensure `flask-cors` is installed and properly configured in `app.py`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhum2a%2Fpitch-deck-classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhum2a%2Fpitch-deck-classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhum2a%2Fpitch-deck-classifier/lists"}