Capstone: Pila 1.2 · lesson 1 of 9
Ideas in this lesson
Agit init · git commit5.3: the first commit
Bpython -m venv .venva separate set of packages for this project
Cpython -m pytest6.2: run every test
DProject board2.7: the work, and where each piece is

Set up

Last updated

The capstone leaves the page. Over nine lessons you'll take Pila through one full release on your own computer, with real Git, real tests and, if you're 13 or older, a real GitHub repository with a pipeline. The feature is the one Ate Cora asked for in lesson 8.P: vaccination reminders. You'll play every role in turn: analyst, designer, developer, tester, operations. This lesson sets everything up.

By the end of this lesson you can

  • Install Git and Python, and check both work
  • Start a repository from Pila’s starter, and run it and its tests
  • Set up a project board for the release

What you’ll do

Pila is at version 1.1.0. Ate Cora wants mothers to get a text before their babies' vaccines are due. You'll take that request all the way to patients:

The capstone
LessonYou’re theYou’ll make
C.1 Set upDeveloperYour repository, running, with a board
C.2 RequirementsAnalystStories and acceptance criteria, as issues
C.3 DesignDesignerThe design, a decision record and a threat model
C.4 Plan the sprintTeamEstimates, a sprint and a definition of done
C.5 BuildDeveloperThe feature, one branch and pull request per story
C.6 TestTesterAcceptance tests, an exploratory session, two bug reports
C.7 PipelineOperationsA workflow that checks every push
C.8 ReleaseProduct ownerVersion 1.2.0, a changelog and release notes
C.9 Look backEveryoneA fix for a bug from the field, a post-mortem, a retrospective

It takes about 10 to 12 hours. Each lesson shows how the course's reference version did it; yours doesn't have to match it line for line.

Install Git and Python

You need Git (Simple Git's lesson Installing Git walks through it) and Python 3.12 or newer. Open a terminal and check both:

Terminal
git --version
git version 2.52.0
python --version
Python 3.14.2
git config --global user.name
Your Name

Any recent versions will do. If git config prints nothing, set your name and email first, as Simple Git shows.

Get Pila

Download the starter. It's Pila 1.1.0, as it was after lesson 8.P:

pila.zip17 files, made in this page
  • pila/.gitignore4 lines
  • pila/CHANGELOG.md23 lines
  • pila/docs/adr/0001-pass-the-gateway-in.md17 lines
  • pila/docs/design.md35 lines
  • pila/pila/__init__.py3 lines
  • pila/pila/__main__.py31 lines
  • pila/pila/gateways.py30 lines
  • pila/pila/jobs.py11 lines
  • pila/pila/phones.py15 lines
  • pila/pila/queue_rules.py55 lines
  • pila/pila/sms.py35 lines
  • pila/pyproject.toml16 lines
  • pila/README.md46 lines
  • pila/tests/test_jobs.py13 lines
  • pila/tests/test_phones.py9 lines
  • pila/tests/test_queue_rules.py83 lines
  • pila/tests/test_sms.py39 lines

Unzip it where you keep your projects, then make it a Git repository with one first commit:

Terminal
cd pila
git init -b main
Initialized empty Git repository in /home/you/pila/.git/
git add .
git commit -m "Start from Pila 1.1.0"
[main (root-commit) 4e1c2a9] Start from Pila 1.1.0
 17 files changed, 465 insertions(+)

Read README.md first, as lesson 8.2 suggested: it says what Pila is, how to run it, and where things are.

Run it, and its tests

Make a virtual environment, a folder holding this project's own packages so they don't mix with other projects', then install the tools and run the tests:

Terminal
python -m venv .venv
source .venv/bin/activate
(.venv) $ python -m pip install pytest ruff
(.venv) $ python -m pytest
...........................                    [100%]
27 passed in 0.12s
(.venv) $ ruff check .
All checks passed!

On Windows, activate it with .venv\Scripts\activate instead. .gitignore already keeps .venv/ out of Git.

Now try Pila. It prints the texts it would send:

Terminal
(.venv) $ python -m pila 8:30
Pila. Type a phone number and a text, like: 0917 123 4567 PILA
A blank line stops.
> 0917 123 4567 PILA
  -> +639171234567: You are number 1. You're next: please come to the counter.
> 0918 111 2222 PILA
  -> +639181112222: You are number 2. 1 person is ahead of you.
>

The 8:30 pretends it's 8:30, so you can try it outside opening hours.

A home on GitHub

Lessons C.5 to C.8 use pull requests, a pipeline and releases on GitHub. GitHub's terms require users to be 13 or older. If you're younger, or would rather not have an account, you can do the whole capstone on your own computer: branches and merges instead of pull requests, running the checks yourself instead of a pipeline, and a tag instead of a GitHub release. Each lesson says how.

If you're using GitHub, create a free account, then a new, empty repository called pila (no README: you have one), and push to it. Simple Git's Signing in and pushing to GitHub shows each step:

Terminal
git remote add origin https://github.com/your-name/pila.git
git push -u origin main

Checked on 6 December 2026. GitHub's pages change; if a button has moved, its documentation, linked below, has the current steps.

The project board

Set up a board for this release (lesson 2.7):

  • On GitHub: in your repository, open Projects, create a new project with the Board layout, and link it to the repository. Rename its columns to Backlog, Ready, In progress, In review and Done. Simple Git's Issues and project boards shows the same.
  • Without GitHub: add a file docs/board.md with those five headings. Each card is a line under one of them; moving a card is moving its line, in a commit.

It's empty for now. In C.2 you'll fill the backlog.

Check your setup

python -m pytest says “27 passed”. What does that tell you?
Why keep .venv/ out of Git?

Sources

Every claim on this page comes from these sources: the standard, the founding text of a method, a study, or the official record of a project, from the body that publishes it. Industry reports are labelled as such.

All sources for Simple Software Development