# Projects and the public site

> Create a project, switch between projects, and learn what the public site of a project shows.

Source: https://feedbackpilgrim.com/docs/using-feedback-pilgrim/projects-and-public-site

A project is one product with its own public site. The code calls a project a "client". All the data of a project stays in that project: posts, contacts, boards, stages, tags, release notes, testimonials, settings and API tokens.

## Create a project

The setup page and `php artisan fp:install` create the first project of the owner. A new user on an open instance creates a project during onboarding.

To create a project, give:

- a name,
- a subdomain. The subdomain uses lowercase letters, digits and single hyphens, for example `acme`. It must be unique on the instance.

These subdomains are reserved: `admin`, `api`, `app`, `assets`, `blog`, `cdn`, `dashboard`, `dev`, `docs`, `help`, `mail`, `mcp`, `smtp`, `staging`, `static`, `status`, `support` and `www`.

When the app creates a project, it also creates:

- a publishable key and an identity secret for the widget,
- six default stages (read [Stages and the roadmap](https://feedbackpilgrim.com/docs/using-feedback-pilgrim/stages-and-roadmap.md)),
- one public board with the name `Feature Requests`,
- the testimonial settings: rating off, automation off, and a default email text,
- an admin contact for the user.

To create one more project, open the project selector at the top of the sidebar and select **New project**. The form at `/onboarding/project` opens. To go back without a new project, click **Cancel**.

## Switch projects

A user can belong to more than one project. The project selector at the top of the sidebar changes the active project. The dashboard keeps the active project in the session. If the session has no project, the dashboard opens the first project of the user.

Only the code that creates a project adds a user to it. No screen adds a second user to a project. Team members (invitations and roles) are a later feature.

## Rename a project

1. In the dashboard, open **Settings > Project**.
2. Change the fields.
3. Click **Save project**.

| Field | Rules |
|---|---|
| Name | Required. 255 characters or fewer. |
| Website | Optional. 255 characters or fewer, for example `example.com`. The public site shows a "Back to" link to this address. Leave it empty to remove the link. |
| Logo | Optional. JPG, PNG, GIF or WebP, 1 MB or less. SVG is not accepted. |

The subdomain of a project cannot change after creation. No form or route changes it.

## The public site

The public site of a project is at `https://<subdomain>.<APP_DOMAIN>`, for example `https://acme.feedback.example.com`. The app finds the project from the host name.

| Path | What it shows |
|---|---|
| `/` | The four newest release notes and the five newest published posts. |
| `/posts` | The published posts. A contact can filter by a public board and sort by date or by votes (`sort_by` is `created_at__DESC`, `created_at__ASC`, `votes_count__DESC` or `votes_count__ASC`). Another `sort_by` value shows the newest posts first. Completed posts are hidden unless the visitor asks for them. |
| `/posts/{id}` | One published post with its comments and votes. |
| `/roadmap` | The roadmap. Read [Stages and the roadmap](https://feedbackpilgrim.com/docs/using-feedback-pilgrim/stages-and-roadmap.md#the-public-roadmap). |
| `/release-notes` | The release notes that have a publication date. |
| `/release-notes/{slug}` | One release note. |
| `/testimonials` | The approved testimonials, and the testimonials of the signed-in contact. |

Anyone can read these pages. To post, vote, comment or write a testimonial, a contact must be signed in.

The public site shows only the posts of public boards. The board filter lists only public boards. A post of a private board does not show on `/`, `/posts`, `/roadmap` or the roadmap iframe. Its page returns 404, and a contact cannot vote or comment on it.

If the project has a website in **Settings > Project**, the public site shows a link back to that website.

## How a contact signs in

A contact has no password. A contact signs in with a signed link to `/authenticate/{uuid}`. The link holds an expiry and a signature.

| Link source | Lifetime |
|---|---|
| The widget, the **Public Site** link and **View site as contact** in the dashboard | 24 hours |
| An email to the contact | 7 days |

The app refuses a link with no expiry, a bad signature, or a contact of another project. After the sign-in, the app goes only to a path on the same host. The sign-in link of the admin contact of a deactivated user returns 404.

The public site has no sign-up form for contacts. Contacts come from the widget, the REST API and the MCP server. Read [The embeddable widget](https://feedbackpilgrim.com/docs/using-feedback-pilgrim/widget.md) and [Contacts and revenue](https://feedbackpilgrim.com/docs/using-feedback-pilgrim/contacts.md).

## Preview the public site

The **Public Site** link in the sidebar of the dashboard opens the public site of the active project. It signs you in as your admin contact. When you post or comment on the public site, you act as this admin contact.

## Custom domains

Custom domains are not supported. The public site of a project is only on its subdomain. A host outside `APP_DOMAIN` gets 404.

## Deactivated users

If every user of a project is deactivated, the public site, the iframes and the widget of the project stop. The public site returns 404 and the widget gets 401. A project with one active user, or with no user, keeps them. Read [The admin area](https://feedbackpilgrim.com/docs/using-feedback-pilgrim/admin-area.md).
