Repository navigation
Getting started
Cursor Agent edited this page Dec 1, 2026
·
1 revision
This page gets Tournure running on your computer in about ten minutes.
-
Node.js 22 or newer (see
.nvmrc) and npm. - A Supabase project (the free plan is enough): https://supabase.com
- An Anthropic API key: https://console.anthropic.com
Optional services (Stripe, Google OAuth, SMTP, Google AI for images) are described in Configuration.
git clone https://github.com/THATMUCH/Open_tournure.git
cd Open_tournure
npm ciNo access token or private registry is needed.
- Create a project in Supabase.
- Open SQL Editor and run every file of
supabase/migrations/, in file-name order (0001_init.sql,0002_..., and so on). Some numbers appear twice (for example0007_*): keep the alphabetical order. -
Authentication > URL Configuration: set Site URL to
http://localhost:3000and addhttp://localhost:3000/auth/callbackto Redirect URLs. -
Project Settings > API: copy the project URL and the
anonkey.
cp .env.example .env.local
openssl rand -base64 32 # paste the result as ENCRYPTION_KEYFill at least NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY, ANTHROPIC_API_KEY, ENCRYPTION_KEY and NEXT_PUBLIC_SITE_URL. Never commit .env.local.
npm run dev # http://localhost:3000Open the app, enter your e-mail, click the magic link you receive, create your first site from its web address, then write your first article.
| Command | What it does |
|---|---|
npm run dev |
Development server |
npm run build / npm start
|
Production build and server |
npm run lint |
ESLint |
npm run typecheck |
TypeScript check |
npm test |
Unit tests (Vitest) |
npm run rotate-key |
Re-encrypt stored secrets with a new ENCRYPTION_KEY (see Configuration) |
-
The magic link redirects to the wrong address: check Site URL and Redirect URLs in Supabase and
NEXT_PUBLIC_SITE_URL. -
Environment changes have no effect on
NEXT_PUBLIC_*: these values are baked in at build time; restartnpm run devor rebuild. -
Image generation returns an error: it needs
GOOGLE_AI_API_KEY; the rest of the app works without it.
Tournure is open source under the MIT licence. · Tournure est open source sous licence MIT. · Repository