🚀 Piper Morgan: Complete Installation Guide

For: First-time users, fresh laptops, zero assumptions Time: ~20-30 minutes from complete nothing to running Piper Morgan Difficulty: Beginner-friendly (we explain everything)


⚠️ Prerequisites: Do You Have What You Need?

Before starting, verify you have everything:

→ Read: Comprehensive Prerequisites Guide

This covers:

Skip ahead only if you already verified all four items above.


🎯 Installation: Let’s Get Piper Morgan Running

Step 1: Open Terminal/Command Prompt

Mac:

  1. Press Cmd + Space
  2. Type “Terminal”
  3. Press Enter
  4. You’ll see a window with a command prompt

Windows:

  1. Press Windows + R
  2. Type “cmd”
  3. Press Enter
  4. You’ll see a black window with a command prompt

Keep this window open for all remaining steps. Don’t close it!


Step 2: Create a Folder for Piper Morgan

We’ll create a dedicated folder to keep everything organized.

Type this command (press Enter after each line):

cd ~
mkdir piper-morgan-workspace
cd piper-morgan-workspace

What these do:

Verify it worked: Type pwd and press Enter. You should see a path ending in piper-morgan-workspace.


🚀 Start Docker (Required Before Wizard)

Piper Morgan’s database runs in Docker. First, make sure Docker Desktop is running:

Mac:

  1. Press Cmd + Space
  2. Type “Docker”
  3. Press Enter (launches Docker Desktop)
  4. Wait 30 seconds for the whale icon to appear in the menu bar (top-right)
  5. Make sure the whale icon is solid/filled (not grayed out)

Windows:

  1. Click the Windows Start menu
  2. Search for “Docker Desktop”
  3. Click “Docker Desktop” to launch it
  4. Wait 30 seconds for Docker to start
  5. Look for the whale icon in the system tray (bottom-right)

Once Docker is running, open a new terminal tab and start the database:

Mac/Linux:

docker-compose up -d postgres

Windows (PowerShell):

docker-compose up -d postgres

Press Enter.

What you’ll see:

Creating network "piper-morgan-product_default" with the default driver
Creating piper-morgan-product_db_1 ...
Creating piper-morgan-product_db_1 ... done

✅ If you see “done”: Database is starting! Give it 10 seconds to fully initialize.

Keep this terminal tab open (Docker will keep running).

Go back to your original terminal tab (the one in the piper-morgan-product folder) and proceed below.


Instead of doing Steps 5-10 manually, you can use the automated setup wizard:

python3.12 main.py setup

This single command will:

  1. âś… Check for Python 3.12
  2. âś… Create your virtual environment
  3. âś… Install all dependencies
  4. âś… Generate SSH key (if needed)
  5. âś… Guide you through GitHub setup
  6. âś… System checks (Docker, port, database)
  7. âś… Create your user account
  8. âś… Collect and validate API keys

Time: ~5-10 minutes total (including waiting for dependencies to install)

If you prefer to do it manually, continue below. Otherwise, you’re done! 🎉


Manual Setup (Optional Alternative)

If you prefer to understand each step, follow Steps 5-10 below. Both approaches work!

Step 5: Create a Python Virtual Environment

This is critical. A virtual environment isolates Piper Morgan’s Python packages from the rest of your system.

⚠️ IMPORTANT: First, clean up any old virtual environment

If you see a venv folder from a previous attempt, delete it:

rm -rf venv

Press Enter.

Now create the virtual environment using Python 3.12 explicitly:

Mac:

python3.12 -m venv venv

Windows:

python -m venv venv

Press Enter.

What this does: Creates a special folder called venv that contains everything Piper Morgan needs, using Python 3.12.

What you’ll see: Nothing much. The command runs silently. Wait for the command prompt to return.

This takes ~30-60 seconds. Don’t interrupt!

Verify it worked: Type ls -la and press Enter. You should see a folder named venv in the list.

Troubleshoot: If you see an error like python3.12: command not found:


Step 6: Activate the Virtual Environment (CRITICAL STEP)

This step changes your terminal to use the Piper Morgan Python environment. You must do this step or nothing will work.

Mac/Linux - Type this command:

source venv/bin/activate

Windows - Type this command:

venv\Scripts\activate

Press Enter.

What you’ll see: Your command prompt changes. Look at the beginning of the line—it should now say (venv) before your username.

Before: username@computer piper-morgan $ After: (venv) username@computer piper-morgan $

❌ If you don’t see (venv): The activation didn’t work. Try the command again.

✅ If you see (venv): Perfect! You’re now using the virtual environment.

⚠️ Important: Every time you close your terminal and open a new one, you’ll need to repeat this step (Step 6) to use Piper Morgan again!


Step 7: Update pip (Python’s Package Installer)

pip is the software that installs Python packages. Let’s make sure it’s up to date.

Type this command:

pip install --upgrade pip

Press Enter.

What you’ll see: Text showing pip being downloaded. This takes ~30 seconds. Wait for the prompt to return.

Verify it worked: Type pip --version and press Enter. You should see a version number.


Step 8: Install All Python Dependencies (THE KEY STEP)

This is the step that fixes the structlog error! This command installs all the Python packages Piper Morgan needs.

Type this command:

pip install -r requirements.txt