Upload files to "/"
This commit is contained in:
44
README.md
Normal file
44
README.md
Normal file
@@ -0,0 +1,44 @@
|
||||
# Dockerized Full-Stack FB Marketplace Deal Hunter
|
||||
|
||||
## Quick Start
|
||||
|
||||
1. **Set up environment variables:**
|
||||
```bash
|
||||
# Edit .env file with your API keys
|
||||
GROK_API_KEY=your_xai_key
|
||||
TELEGRAM_TOKEN=your_bot_token
|
||||
TELEGRAM_CHAT_ID=your_chat_id
|
||||
```
|
||||
|
||||
2. **Build and run:**
|
||||
```bash
|
||||
docker-compose up --build -d
|
||||
```
|
||||
|
||||
3. **Access the application:**
|
||||
- Frontend: http://localhost:8501
|
||||
- Backend API: http://localhost:8000
|
||||
|
||||
## Features
|
||||
|
||||
- **Facebook Marketplace Scraping**: Automatically searches for items
|
||||
- **Price Valuation**: Compares with eBay sold listings
|
||||
- **AI-Powered Offers**: Generates polite lowball offers using Grok AI
|
||||
- **Telegram Alerts**: Sends hot deals directly to Telegram
|
||||
- **CSV Export**: Download all deals as CSV
|
||||
- **Dockerized**: Easy deployment with Docker Compose
|
||||
|
||||
## API Usage
|
||||
|
||||
Test the backend directly:
|
||||
```bash
|
||||
curl -X POST http://localhost:8000/hunt \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"item": "iPhone 15", "min_price": 0, "max_price": 1000}'
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
- Edit search parameters in the Streamlit sidebar
|
||||
- Adjust scoring thresholds for hot deals
|
||||
- Customize Telegram notifications
|
||||
26
docker-compose.yml
Normal file
26
docker-compose.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
backend:
|
||||
build: ./backend
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- GROK_API_KEY=${GROK_API_KEY}
|
||||
- TELEGRAM_TOKEN=${TELEGRAM_TOKEN}
|
||||
- TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID}
|
||||
volumes:
|
||||
- ./data:/app/data # For logs/CSVs
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
build: ./frontend
|
||||
ports:
|
||||
- "8501:8501"
|
||||
depends_on:
|
||||
- backend
|
||||
environment:
|
||||
- BACKEND_URL=http://backend:8000
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
data:
|
||||
Reference in New Issue
Block a user