Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions PdfToPodcast/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Backend Configuration
CORS_ORIGINS=http://localhost:3000

# Service URLs (for local development)
PDF_SERVICE_URL=http://pdf-service:8001
LLM_SERVICE_URL=http://llm-service:8002
TTS_SERVICE_URL=http://tts-service:8003
BACKEND_API_URL=http://localhost:8000

# File Upload Configuration
MAX_FILE_SIZE=10485760 # 10MB in bytes

# Environment
NODE_ENV=development
PYTHON_ENV=development
79 changes: 79 additions & 0 deletions PdfToPodcast/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Environment variables
.env
.env.local
.env.*.local

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
venv/
env/
ENV/
.venv

# Node
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
.pnpm-debug.log*
dist/
dist-ssr/
*.local

# IDE
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store

# Docker
*.log

# Uploads and outputs
uploads/
outputs/
*.mp3
*.wav
microservices/tts-service/static/audio/

# Exception: Allow voice sample files
!ui/public/voice-samples/*.mp3

# Database
*.db
*.sqlite
*.sqlite3

# Testing
.pytest_cache/
.coverage
htmlcov/
.tox/

# Misc
.cache/
*.bak
*.tmp
18 changes: 18 additions & 0 deletions PdfToPodcast/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM python:3.9-slim

# Set the working directory in the container
WORKDIR /app

# Copy the requirements file first to leverage Docker layer caching
COPY requirements.txt .

RUN pip install -r requirements.txt

# Copy the rest of the application files into the container
COPY simple_backend.py .

# Expose the port the service runs on
EXPOSE 8000

# Command to run the application
CMD ["python", "-m", "uvicorn", "simple_backend:app", "--host", "0.0.0.0", "--port", "8000"]
Loading
Loading