Initial commit: Screen Leads app
Screen-capture lead tool: capture agent, Claude vision extractor with pluggable site recipes (LinkedIn), canonical funnel model, SQLite storage, FastAPI backend, dashboard, and setup/run scripts. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
@echo off
|
||||
REM One-time setup for Screen Leads (Windows):
|
||||
REM 1. create the virtual environment
|
||||
REM 2. install dependencies
|
||||
REM 3. prompt for environment variables and write .env
|
||||
setlocal enabledelayedexpansion
|
||||
cd /d "%~dp0"
|
||||
echo == Screen Leads setup ==
|
||||
|
||||
if not exist ".venv" (
|
||||
echo Creating virtual environment (.venv)...
|
||||
python -m venv .venv
|
||||
) else (
|
||||
echo Virtual environment already exists.
|
||||
)
|
||||
call .venv\Scripts\activate
|
||||
|
||||
echo Installing dependencies...
|
||||
pip install -q --upgrade pip
|
||||
pip install -q -r requirements.txt
|
||||
type nul > .venv\.installed
|
||||
|
||||
if exist ".env" (
|
||||
echo .env already exists - leaving it untouched.
|
||||
goto done
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Set up your environment variables (saved to .env):
|
||||
set /p API_KEY=" Anthropic API key (sk-ant-...): "
|
||||
set /p MODEL=" Model [claude-opus-4-8] (Enter to accept): "
|
||||
if "!MODEL!"=="" set MODEL=claude-opus-4-8
|
||||
> .env echo ANTHROPIC_API_KEY=!API_KEY!
|
||||
>> .env echo SCREEN_LEADS_MODEL=!MODEL!
|
||||
echo Wrote .env
|
||||
if "!API_KEY!"=="" echo WARNING: no key entered - edit .env before running.
|
||||
|
||||
:done
|
||||
echo.
|
||||
echo Setup complete. Start the app with: run.bat
|
||||
endlocal
|
||||
Reference in New Issue
Block a user