DATABASE_URL=sqlite:///./app/db/reviews.db
CELERY_BROKER_URL=redis://localhost:6379/0
CELERY_BACKEND_URL=redis://localhost:6379/0
OPENAI_API_KEY=your-api-key
OPENAI_MODEL=gpt-4
- Clone the repo
- Create virtual environment
python -m venv venv
.\venv\Scripts\activate # on linux or mac: source venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Run database migrations
alembic upgrade head
- Start Redis server (ensure Redis is installed)
redis-server
- Start the Celery worker
celery -A app.core.celery_app worker --loglevel=info --pool=solo
- Run the FastAPI application
uvicorn app.main:app --reload