Skip to content

Latest commit

 

History

History
100 lines (61 loc) · 2.55 KB

phase-01.md

File metadata and controls

100 lines (61 loc) · 2.55 KB

Phase 01: Preparation (15 minutes)

Goal

Set up a clean Python development workspace for the capstone activity.

What is a fork?

A fork is your own copy of someone else's GitHub repository. We use a fork so you can safely make changes, commit your work, and push to your own GitHub account without changing the instructor repository.

Steps

  1. Make sure Python is installed on your computer and your GitHub account is ready in your browser.

All Python solution files for this capstone should be saved inside the solutions/ folder.

  1. Open the capstone repository in a new tab and return here.

  2. Fork the repository to your own GitHub account.

Click Fork on the instructor repository.

Fork the repository on GitHub

On the next screen, choose your GitHub account as the owner and click Create fork.

Create a new fork on GitHub

  1. After GitHub creates your fork, copy the HTTPS clone URL from your own repository. Make sure the URL contains your GitHub username.

Click the copy button.

Clone your forked repository

  1. On your computer, open a new, fresh VS Code window and a terminal and navigate to a folder, for example cd Documents.

Then run:

git clone YOUR_HTTP_CLONE_URL
cd bda-capstone-1
  1. Open the cloned folder in VS Code.

  2. Create and activate a virtual environment.

macOS/Linux:

python3 -m venv .venv
source .venv/bin/activate

Windows PowerShell:

python -m venv .venv
.\.venv\Scripts\Activate.ps1

Optional temporary PowerShell bypass (current session only): Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass Then run: .\.venv\Scripts\Activate.ps1

  1. Install the dependencies in the requirements.txt.
pip install -r requirements.txt
  1. Create a simple test file called solutions/test_yt_dlp.py to check that yt-dlp installed correctly.
import yt_dlp

print("Import successful")

Run the test:

python solutions/test_yt_dlp.py

Checkpoint

Before moving to Phase 02, confirm that:

  • You cloned your own fork, not the instructor repository.

    Check your Git remote (you should see your own GitHub username in the remote URL).

    git remote -v
  • The project folder is open in VS Code.

  • You are in the correct folder (bda-capstone-1)

  • Your virtual environment is activated.

  • The dependencies were installed without errors.

  • python solutions/test_yt_dlp.py prints Import successful.