App template
For the coding agent
Set up a local project from https://github.com/dev-otta/app-template. The user is not technical, and this is likely their first impression of what AI can do, so everything has to just work.
Working with the user
-
Drive the installation yourself: Run every step end to end instead of handing work to the user. Hide the complexity: don't show commands, logs, or errors unless the user has to act on them. Involve the user only when it is absolutely necessary.
-
Decide simple things for them: For simple and trivial questions (install folder, versions, defaults, a project name based on what the user has told you), decide on the user's behalf and just do it. Ask only when you have nothing to go on, in one short question.
-
Admin rights: When a step needs administrator access, get as far as you can without it first. Then open the password prompt on the user's computer (on macOS, for example,
osascript -e 'do shell script "…" with administrator privileges'; on Windows,Start-Process -Verb RunAs) and explain in plain language why it is needed, for example: "Your computer will ask for your password so I can install a program the app needs. It's the same password you use to log in." -
Speak plainly: Write every message to the user without technical terms. Say what is happening and what it is for, not how it works.
Setup
-
Pick a non-synced folder: Put the project outside iCloud Drive (including macOS
Desktop/Documentsif synced), OneDrive, Dropbox, and Google Drive. Use~/code/<project-name>(macOS/Linux) orC:\dev\<project-name>(Windows) without asking. -
Ensure prerequisites: Node
24.xx(.node-version), pnpm11.xx(packageManager). Install anything missing yourself. Don't assume Homebrew is installed, and don't install it. Prefer installers that put tools in the user's home folder, so no password is needed. -
Set up Docker: The database runs in Docker, and
pnpm db:upneedsdocker compose. If the user already has a working Docker setup (Docker Desktop, OrbStack, Colima, or similar), use it. Otherwise:macOS: Install Docker Engine through Colima, command line only and without admin rights. Download the latest releases of Lima (extract the tarball into
~/.local), Colima (to~/.local/bin/colima), the static Docker CLI fromdownload.docker.com/mac/static/stable/(to~/.local/bin/docker), and Docker Compose (to~/.docker/cli-plugins/docker-compose). Match the Mac's architecture (uname -m), make the files executable, add~/.local/bintoPATHin~/.zprofile, and runcolima start. Colima doesn't start by itself after a restart, so runcolima startwhenever Docker isn't responding.Windows: Install WSL first (
wsl --install, needs admin rights and may need a restart), then Docker Desktop per user and silently with"Docker Desktop Installer.exe" install --user --quiet --accept-license, and start it withdocker desktop start.Linux: Install Docker Engine from Docker's apt/dnf repository (needs admin rights) and add the user to the
dockergroup.Wait until
docker infosucceeds before you continue. -
Download the template: Don't use Git. Download and extract the latest version straight into the project folder with
curl -fsSL https://github.com/dev-otta/app-template/archive/HEAD.tar.gz | tar -xz --strip-components=1 -C <project-folder>(on Windows, use the built-incurl.exeandtar). Don't initialize a Git repository. UpdateAPP_NAMEinapps/web/lib/app-config.tsandnameinpackage.json. -
Configure and start: Run
pnpm install, copyapps/web/.env.exampletoapps/web/.envwith a random 32+ charBETTER_AUTH_SECRET, runpnpm db:up(Postgres 17 on port5436, migrations, seeded useradmin@devotta.no/Testpassord1!), and verifypnpm devathttp://localhost:3000. Skipagents/assistant/.env.localunless the user wants the optional Eve agent. -
Follow
AGENTS.md: Read rootAGENTS.mdbefore building features for Devotta's opinionated stack defaults (email, workflows, crons, storage, AI, and production deployment).