Skip to content

Capstone-PCJJL/Back_End

Repository files navigation

Movie Site Backend

Backend services for the movie recommendation website. This project handles data ingestion, processing, and API services.

Components

Component Description Status
TMDB Pipeline Ingests movie data from TMDB API Active
Recommendations Movie recommendation engine Planned
API REST API for frontend Planned

Project Structure

Back_End/
├── tmdb_pipeline/           # TMDB data ingestion (self-contained)
│   ├── *.py                 # Pipeline source code
│   ├── scripts/             # Automation scripts
│   ├── sql/                 # Table schemas
│   ├── docs/                # Documentation
│   └── logs/                # Log files
├── Dockerfile
├── requirements.txt
├── .env
└── README.md

Quick Start

1. Setup Environment

# Clone repository
git clone https://github.com/YOUR_USERNAME/Back_End.git
cd Back_End

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Configure environment
cp .env.example .env
# Edit .env with your credentials

2. Run TMDB Pipeline

See TMDB Pipeline Documentation for full details.

# Test connections
python -m tmdb_pipeline test

# Setup database tables
python -m tmdb_pipeline setup

# Run initial ingestion (test mode)
python -m tmdb_pipeline initial --test-limit 5

Environment Variables

Create a .env file in the project root:

# TMDB API
API_KEY=your_tmdb_api_key
TMDB_BEARER_TOKEN=your_bearer_token
BASE_URL=https://api.themoviedb.org/3

# Database
SQL_HOST=localhost
SQL_PORT=3306
SQL_USER=your_db_user
SQL_PASS=your_db_password
SQL_DB=your_database_name

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •