This guide walks you through running AI Startup Analyzer on your local machine from a fresh clone to submitting a real analysis. All commands assume you are in the repository root unless noted otherwise.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Abbaddii-99/AI-Startup-Analyzer/llms.txt
Use this file to discover all available pages before exploring further.
Check Prerequisites
Before you begin, make sure the following are available on your machine.
| Requirement | Minimum Version | Notes |
|---|---|---|
| Node.js | 20+ | Required by both apps and all packages |
| pnpm | 10+ | The only supported package manager in this repo |
| Redis | 7+ | Used by BullMQ for the job queue and by the AI response cache |
| AI API key | — | Gemini 2.0 Flash or any OpenRouter model |
Clone and Install Dependencies
Clone the repository and install all workspace dependencies with pnpm. Turborepo will handle the build graph automatically.
pnpm install installs dependencies for all three workspaces — apps/backend, apps/frontend, and every package under packages/ — in a single pass.Configure Environment Variables
Copy the example environment file and fill in the required values.Open Key variable notes:
.env and set these variables at minimum:DATABASE_URLmust be the pooled Neon connection string. The running application uses this for all queries.DIRECT_DATABASE_URLmust be the direct (non-pooled) Neon connection string. Prisma uses this exclusively for migrations.JWT_SECRETmust be a long, random string. In production, generate one withopenssl rand -base64 64.- You only need one AI key to get started. Set
GEMINI_API_KEYfor Google Gemini 2.0 Flash orOPENROUTER_API_KEYfor OpenRouter-hosted models.
Start Redis
The job queue and AI response cache both require a running Redis instance. For local development without authentication, spin one up with Docker:Alternatively, if you prefer to start all local services (Redis + PostgreSQL) together, use the provided Compose file:Verify Redis is responding:
The
docker-compose.yml in the repo root starts both redis:7-alpine and postgres:16-alpine. If you are connecting to a Neon database, you only need the Redis service — comment out the postgres service or start Redis individually as shown above.Prepare the Database
Generate the Prisma client from the schema, then apply the committed baseline migration to your target database.You can verify the schema by opening Prisma Studio:
Run the App
Start the full monorepo in development mode. Turborepo will run the frontend and backend in parallel with hot reload enabled.Once the servers start, you will see:
| Service | URL |
|---|---|
| Frontend (Next.js) | http://localhost:3000 |
| Backend API (NestJS) | http://localhost:4000 |
| Health check | http://localhost:4000/health |
Submit Your First Analysis
With everything running, you are ready to analyze a startup idea. Open the web app in your browser at http://localhost:3000, register an account, and paste your idea into the submission form.You can also call the API directly. First, register and log in to receive an A successful response returns the new analysis record with its Poll for progress while the 14 agents are running:The
accessToken cookie, then submit an idea:id and an initial status of PENDING:progress field moves from 0 → 5 (job picked up) → 90 (Phase 1 complete) → 98 (Phase 2 and grounding complete) → 100 (ComprehensiveIdeaAnalyzer complete, database written). When status is COMPLETED, fetch the full report:What to Do Next
After your first successful analysis, explore the other capabilities of the platform:- Regenerate a section —
POST /analysis/:id/regenerate/:sectionre-runs a single agent without repeating the full pipeline. - Chat about an analysis —
POST /analysis/chatlets you ask follow-up questions grounded in the existing report. - Retry a failed analysis —
POST /analysis/:id/retryre-enqueues a job whosestatusisFAILED. - Review your plan usage —
GET /analysis/me/planreturns your current tier and remaining analyses for the month.