Without a website
A project that is only an API, in TypeScript or Python, with or without the native app that calls it.
pnpm dlx @clubedge/create-clubedge-app my-app --framework none --api hono --mobile expo--framework none leaves the website out: the project is its API, Hono or FastAPI, in apps/api, with or without the native app in apps/mobile, which calls the API directly. It needs CLI 0.44.0 and Starter v0.28.0.
Choose it
A project needs a web app or an API, so --framework none needs --api hono or --api fastapi:
| Flags | Apps |
|---|---|
--framework none --api hono | The Hono API, in TypeScript |
--framework none --api fastapi | The FastAPI API, in Python, managed with uv |
--mobile expo, with either | The native app, which calls the API at its own address |
A project needs a web app or an API: choose one with --framework or --api.Interactive runs offer None after the frameworks, then ask Which API should the apps call? and Add a native mobile app?. The mobile app (--shell capacitor) packages a website's pages, so it isn't offered. In the builder, pick No website as the framework.
The project's package.json records "framework": "none", so add, remove, and upgrade keep it without a website, and the commands that manage env files leave apps/web/.env.local out.
What you get
apps/api: the API, package@clubedge/api, as in a frontend and its API. It owns the database and the modules, and readsapps/api/.env.local, the project's env file; the database commands readDATABASE_URLthere.packages/contract: the contract the API implements,openapi.yaml, the client generated from it, which the native app calls the API with, and the conformance suite.apps/mobile, with--mobile expo: the native app, with its own.env.local.- No
apps/web, rootDockerfile,packages/ui, or browser tests (e2e/): there are no pages. The project's name lives in the API's site config,apps/api/src/config/site.json, and in the native app's copy.
SETUP.md has a section on it, "Without a website".
Run it
pnpm devpnpm dev starts the API on port 3001, and pnpm start serves its production build there. In development, the API listens on every interface (HOST=0.0.0.0 in apps/api/.env.local), so a phone or another device on the same network reaches it at your computer's address. Its liveness endpoint is http://localhost:3001/api/health.
pnpm check:servicesandpnpm check:envcheck the API, andpnpm clubedge doctorchecksapps/api/.env.localagainst its example.pnpm docker:devruns the API alone in Docker Compose, on the same port.pnpm test:e2e,pnpm docker:build, andpnpm docker:startbelong to a website, so the project doesn't have them.
With the API running, pnpm --filter @clubedge/mobile-app android (or ios) builds the native app and starts it on an emulator or a phone: see Set it up.
Modules without a website
The API runs the modules as it does next to a website (Modules on these stacks), but a few options need the website. The Starter's rules refuse them, and the CLI says why:
| Refused | Why | Instead |
|---|---|---|
--payments stripe | Checkout and the customer portal send users back to the website's pages. | --payments none, or a web app |
--jobs inngest | Inngest reaches the jobs through the website's address. | --jobs pg-boss or bullmq, which run in the API; with FastAPI, bullmq |
--auth better-auth with --api fastapi | Without a website, Better Auth runs in the API, and FastAPI can't run it. | --api hono, or another --auth |
--deploy fly, vercel, netlify, or render | They deploy a web app, and the project has only its API. | --deploy docker or railway |
Payments send users back to the website's pages, and a project without a website has none: choose --payments none, or a web app with --framework.Prompts, the builder, and add only offer what the rules allow, and a module left to its default gives way to the first option they allow. With the native app, sign-in is also limited to what it implements: Supabase Auth, Better Auth, or none.
Sign-in
Better Auth runs in the Hono API, which serves it at /api/auth, once BETTER_AUTH_SECRET is set in apps/api/.env.local: at least 32 random characters, such as the output of openssl rand -hex 32. pnpm check:env refuses a shorter one, and until it is set, no one can sign in. BETTER_AUTH_URL is the API's public URL, http://localhost:3001 in development.
It trusts the native app's address scheme, so the app signs in there. With an email module, Better Auth's emailed links open the app: confirming a new account opens its sign-in screen, and a password reset link opens its reset screen.
The API keeps the account endpoints: the display name and account deletion, which checks the password, removes the user's app data, then deletes the user from the provider. Passwords change with the provider. With the native app, its settings screen uses them.
Deploy
pnpm clubedge deploy publishes the API itself, as the project's one public service:
With --deploy docker, deploy writes a compose.yaml whose one app is the API, api, behind Caddy, which serves it at your DOMAIN over HTTPS and passes the client's address to it (TRUSTED_PROXY_HOPS=1). With Better Auth, the API gets BETTER_AUTH_URL, https://$DOMAIN unless .env.production sets another. Put the variables of apps/api/.env.example in .env.production, then migrate with the API's image and start:
docker compose --env-file .env.production run --rm api node /app/migrate.mjs
docker compose --env-file .env.production up -d # --build builds the image on the serverSee Docker Compose.
For the native app's release builds, set its EXPO_PUBLIC_API_URL to the API's https:// address.
Fly.io, Vercel, Netlify, and Render deploy a web app, so the CLI refuses them for a project without one. deploy --preview deploys a web app only, so it refuses too, and prints how to copy production's Railway environment instead.
The contract
The API implements packages/contract/openapi.yaml and passes the conformance suite, as next to a website. To change it, edit the contract first, regenerate the client with pnpm --filter @clubedge/contract generate, then implement the change in the API.
Installed apps keep calling the contract they shipped with, so the CI's contract job fails a pull request that breaks it, and GET /api/app-version tells them when to update: see Apps installed on phones. CI also serves the API's production build and checks /api/health on port 3001, then builds the API's image, runs its migrations, and checks the image the same way.
How is this guide?