This file is the source of truth for getting the project running.
A person can follow it. An AI agent should follow it exactly.
Live site: lattirance.com (canonical). lattirance.co.za redirects to the .com.
Repo: jleroux1988/lattirance.github.io
lattirance).In chat, say:
Set up this project
If you are an agent: skip the section above and run Agent playbook below. Talk in plain language. Do the work. Do not dump a wall of commands for the user to copy unless something needs their password or a browser click.
Goal: leave a working local copy of L’Attirance on this machine, with Homebrew and IntelliJ ready.
Rules:
brew install … step, and before Git-via-brew, IntelliJ, or Ruby.CNAME file. It must stay lattirance.com (canonical). lattirance.co.za redirects to the .com at the registrar — do not add .co.za to CNAME.macOS does not include Homebrew. Everything below that uses brew depends on this step.
brew --version
If that fails, install with the official script:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
This often needs:
Wait until those finish. Then put brew on PATH if it is not already (Apple Silicon is usually this):
eval "$(/opt/homebrew/bin/brew shellenv)"
If ~/.zprofile does not already contain that eval line, append it so new terminals find Homebrew.
Do not continue until brew --version works.
git --version
If Git is missing: brew install git.
Expected path ends with lattirance.
Expected remote: git@github.com:jleroux1988/lattirance.github.io.git
If the folder is empty or not a git repo, clone:
git clone git@github.com:jleroux1988/lattirance.github.io.git .
If SSH clone fails, diagnose:
git --version)ls ~/.ssh/id_ed25519.pub)known_hosts is missing github.com, add official keys with ssh-keyscan.ssh -T git@github.com should greet jleroux1988 (or the user’s GitHub username).If they have no SSH key, create one (ssh-keygen -t ed25519 -C "their-email"), show the public key, and wait while they add it at GitHub SSH keys.
This is the IDE we work in. Check Applications (or Spotlight) for IntelliJ IDEA or IntelliJ IDEA CE.
If neither is installed:
brew install --cask intellij-idea-ce
That is the free Community Edition. If the user already has a JetBrains license and wants Ultimate instead, install intellij-idea (not -ce) and skip CE.
After install, they can open this lattirance folder from IntelliJ: File → Open.
This is a GitHub Pages site. Local preview uses Ruby + Bundler + Jekyll (via the github-pages gem).
macOS system Ruby is often locked down. Prefer Homebrew Ruby:
brew install ruby
Then ensure ruby and gem on PATH are the Homebrew ones, and install Bundler:
gem install bundler
bundle --version
If a Gemfile exists:
bundle install
Gemfile.lock is gitignored on purpose (GitHub Pages uses its own gem versions). That is expected.
If there is no Gemfile yet:
Gemfile / Jekyll scaffold if the user asks to start building the site.If Gemfile and site files exist:
bundle exec jekyll serve
Open http://127.0.0.1:4000.
The public site stays on lattirance.com via GitHub Pages after pushes to main. lattirance.co.za should keep redirecting there.
Give a short plain-language summary:
| Item | Status |
|---|---|
| Homebrew | ok / installed / blocked |
| Git | ok / installed / blocked |
| GitHub SSH | ok / needs key / blocked |
| IntelliJ IDEA | ok / installed CE / installed Ultimate / blocked |
| Ruby + Bundler | ok / installed / blocked |
bundle install |
ok / skipped (no Gemfile) / failed |
| Local preview | running at http://127.0.0.1:4000 / not available yet |
Then tell them the next useful sentence, for example: “Setup is done. Open this folder in IntelliJ when you want to start the homepage.” or “I need your Mac password to finish Homebrew.”
Same steps, compressed, if a person wants to do it themselves on a Mac:
# 1. Homebrew first (not included with macOS)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"
# 2. Tools
brew install git ruby
brew install --cask intellij-idea-ce
gem install bundler
# 3. Clone (from an empty project folder)
git clone git@github.com:jleroux1988/lattirance.github.io.git .
# 4. If a Gemfile exists
bundle install
bundle exec jekyll serve
eval "$(/opt/homebrew/bin/brew shellenv)" in this terminal (and add it to ~/.zprofile).Host key verification failed: GitHub is not in ~/.ssh/known_hosts yet. Add it with ssh-keyscan, then retry..co.za does not reach .com: the redirect is at the registrar, not in this repo. CNAME should still be lattirance.com only.bundle / jekyll not found: Homebrew Ruby is not on PATH. Open a new terminal or add Homebrew Ruby’s bin directory to PATH.