Devotta

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

  1. Pick a non-synced folder: Put the project outside iCloud Drive (including macOS Desktop/Documents if synced), OneDrive, Dropbox, and Google Drive. Use ~/code/<project-name> (macOS/Linux) or C:\dev\<project-name> (Windows) without asking.

  2. Ensure prerequisites: Node 24.xx (.node-version), pnpm 11.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.

  3. Set up Docker: The database runs in Docker, and pnpm db:up needs docker 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 from download.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/bin to PATH in ~/.zprofile, and run colima start. Colima doesn't start by itself after a restart, so run colima start whenever 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 with docker desktop start.

    Linux: Install Docker Engine from Docker's apt/dnf repository (needs admin rights) and add the user to the docker group.

    Wait until docker info succeeds before you continue.

  4. 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-in curl.exe and tar). Don't initialize a Git repository. Update APP_NAME in apps/web/lib/app-config.ts and name in package.json.

  5. Configure and start: Run pnpm install, copy apps/web/.env.example to apps/web/.env with a random 32+ char BETTER_AUTH_SECRET, run pnpm db:up (Postgres 17 on port 5436, migrations, seeded user admin@devotta.no / Testpassord1!), and verify pnpm dev at http://localhost:3000. Skip agents/assistant/.env.local unless the user wants the optional Eve agent.

  6. Follow AGENTS.md: Read root AGENTS.md before building features for Devotta's opinionated stack defaults (email, workflows, crons, storage, AI, and production deployment).