> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plazen.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Full Setup

> Set up a FULL copy of Plazen

## 1. Fork the repository

Go to [our repository](https://github.com/plazen/plazen) and click "Fork"

<img src="https://mintcdn.com/plazen/VlSJtUjIvqScFqT8/images/Screenshot2026-01-06at12.26.12.png?fit=max&auto=format&n=VlSJtUjIvqScFqT8&q=85&s=7f782713c7dda8fa89a9dc0b947b53a7" alt="Screenshot2026 01 06at12 26 12" width="2248" height="154" data-path="images/Screenshot2026-01-06at12.26.12.png" />

## 2. Clone your copy of Plazen

```
git clone https://github.com/<your_username>/plazen.git
```

## 3. Copy example .env

```
cp env.example .env
```

## 4. Create a Supabase project

Go to [Supabase official website](supabase.com) and create a project

<img src="https://mintcdn.com/plazen/VlSJtUjIvqScFqT8/images/Screenshot2026-01-06at12.35.46.png?fit=max&auto=format&n=VlSJtUjIvqScFqT8&q=85&s=3ead6430079d8e3376207c1438fb8cb4" alt="Screenshot2026 01 06at12 35 46" width="1566" height="1360" data-path="images/Screenshot2026-01-06at12.35.46.png" />

## 5. Get Supabase environmental values.

<Warning>
  These are required for Supabase Auth and cookies, they are not used for database connection
</Warning>

<img src="https://mintcdn.com/plazen/R5WubyAlpldha8kX/images/Screenshot2026-01-06at16.37.29.png?fit=max&auto=format&n=R5WubyAlpldha8kX&q=85&s=9252c9ec908c868cd60a24e56546ad77" alt="Screenshot 2026 01 06 At 16 37 29" width="2940" height="858" data-path="images/Screenshot2026-01-06at16.37.29.png" />

In Settings > API keys you can get:

```
NEXT_PUBLIC_SUPABASE_ANON_KEY="first_line"
SUPABASE_SERVICE_ROLE_KEY="second_line"
```

## 6. Get Prisma running

<Note>
  This project requires you to have Supabase as a database too currently
</Note>

a. In Supabase dashboard click the "Connect" button in the top left corner:

<img src="https://mintcdn.com/plazen/R5WubyAlpldha8kX/images/Screenshot2026-01-06at16.42.23.png?fit=max&auto=format&n=R5WubyAlpldha8kX&q=85&s=90c94e64902d75d4bbca8c978ff1bb9f" alt="Screenshot 2026 01 06 At 16 42 23" width="1348" height="110" data-path="images/Screenshot2026-01-06at16.42.23.png" />

b. The Supabase will give you a direct connection string that looks like this:

```
postgresql://postgres:[YOUR-PASSWORD]@db.[YOUR-PROJECT-ID].supabase.co:5432/postgres
```

c. Copy it (you will need the password from step 4) and paste it in the .env

```
DATABASE_URL="postgresql://postgres.example:example@aws-1-eu-central-1.pooler.supabase.com:5432/postgres"
```

<Note>
  Notice how the URL is different from the example above? It is because you have to use a pooler for the production build (Most servers don't support IPv6). If running locally, you will be fine with either
</Note>

d. Now, that supabase is almost set up, you need to push our schema to the new database

```
npm install
npx prisma generate
npx prisma db push
```

\
\
This should be enough to get the project running!\
\
Other environmental variables are used for specific features.
