Skip to main content

New project checklist

Follow these steps every time you start a new Python project.

Step 1: Open terminal

Open your terminal:
  • Mac: Terminal app or iTerm
  • Windows: Terminal, Command Prompt, or PowerShell

Step 2: Navigate to your projects folder

Create a dedicated folder for all your Python projects. This keeps things organized!

Step 3: Create the project

Use uv to create your project:
What happens:
  • Creates a new folder my-awesome-project
  • Creates .gitignore (Git will ignore .venv, .env, etc.)
  • Creates .python-version (specifies Python version)
  • Creates pyproject.toml (project configuration)
  • Creates README.md (project description)
  • Creates main.py (example file)
Initial structure:
The .venv folder is created automatically when you run uv add to install your first package. Same with uv.lock.

Step 4: Open in VS Code

What happens:
  • VS Code opens with your project
  • Python extension activates automatically
  • Virtual environment is detected
If code . doesn’t work, see the Git section for setup instructions.

Step 5: Add packages

Open terminal in VS Code (Ctrl+`):
What happens:
  • Packages download and install
  • pyproject.toml updates with dependencies
  • uv.lock locks exact versions

Step 6: Test your setup

Edit main.py:
Run it:

Step 7: Set up environment variables

Create .env for secrets:
Create .env.example for others:
Important: .env is already in .gitignore - your secrets are safe!

Step 8: Initialize Git

What happens:
  • Git starts tracking your files
  • All files except those in .gitignore are staged
  • Your first snapshot is saved

Step 9: Create GitHub repository

Create the repository directly from your terminal:
You’re done! Your project is now:
  • Set up locally with uv
  • Tracked by Git
  • Backed up on GitHub

The daily workflow

From here, your routine is:
Prefer clicking? You can do all Git operations using VS Code’s UI:
  • Source Control panel (Ctrl+Shift+G): Stage, commit, and push with clicks
  • Status bar: Shows branch and sync button
  • Command Palette (Ctrl+Shift+P): Type “Git” to see all commands
See the Git & GitHub section for details!

Quick reference

Pro tips

  1. Commit often - Small commits are better than huge ones
  2. Write clear messages - “Fix login bug” not “updates”
  3. Use .env - Never hardcode secrets
  4. Keep it simple - Don’t over-engineer

Commands summary

Here’s everything in one place:

What’s next

You’ve completed the Python fundamentals course. Continue your journey with these next steps:

Course summary

See what you’ve learned and continue with AI agents in Python