# Quickstart

> Sign up, connect GitHub, create a project with its components, and record your first release.

This guide takes you from a new account to the first release of a project. You need a GitHub account that can install a GitHub App on the repositories of your product.

<Steps>
<Step title="Sign up and create your workspace" id="sign-up">

When you sign up, you also create your first workspace, which holds your projects.

1. Go to [patchbay.unbrikd.com/sign-up](https://patchbay.unbrikd.com/sign-up).
2. Click **Continue with email** or **Continue with GitHub**. If you use email, Patchbay sends you a code.
3. If you use email, enter the code and click **Verify**.
4. When Patchbay asks you to **Create a new workspace**, enter a workspace name and keep or change the address under it.
5. Click **Create workspace**.

If a teammate invited you to their workspace, open the link in the invitation email and click **Accept invitation**. [Invite members](/workspace/members) explains how invitations work.

</Step>
<Step title="Connect GitHub" id="connect-github">

Patchbay reads your code through the Patchbay GitHub App. In a workspace that other people share, only workspace owners and administrators can connect GitHub.

1. On the workspace home, find the **GitHub Integration** card and click **Connect to GitHub**. GitHub opens the installation page of the Patchbay GitHub App.
2. Choose the GitHub account or organization.
3. Choose the repositories that Patchbay can read. GitHub sends you back to Patchbay, and the connection shows as **Connected**.

<Media id="quickstart-github" label="The GitHub Integration card on the workspace home next to the GitHub page where you choose the repositories for the Patchbay app." />

[Connect GitHub](/workspace/github) explains what the app reads and writes.

</Step>
<Step title="Create a project" id="create-project">

A project is one product that you release.

1. On the workspace home, click **Create project**.
2. Enter a **Project name**, and add a description if you want one.

If you want to add components in the same dialog, keep it open and continue with the next step before you click **Create project**. A new project is private, and you get the **Admin** role on it. [Project access and roles](/projects/access) explains how to give other people access.

</Step>
<Step title="Add components" id="add-components">

A component is one part of your product, either a whole repository or one folder of a monorepo. You can add components in Patchbay, or declare them in a catalog file in your repository.

<Tabs>
<Tab title="In Patchbay">

1. In the **New project** dialog, click **Components**.
2. Search for a repository and select it.
3. Select a folder, or select **Use whole repository**.
4. Select the branch, tag or commit that the component follows.
5. Repeat these steps for each component.
6. Click **Create project**. Patchbay creates the project and opens its Genesis page.

</Tab>
<Tab title="With a catalog file">

A catalog file is a `patchbay.yaml` file in a repository that the GitHub App can access. This example declares three components in a monorepo:

```yaml title="patchbay.yaml"
apiVersion: patchbay.unbrikd.cloud/v1alpha1
kind: ProjectCatalog
project: acme/storefront
components:
  - name: web
    rootPath: apps/web
  - name: api
    rootPath: apps/api
  - name: worker
    rootPath: apps/worker
```

1. Copy the example into a `patchbay.yaml` file.
2. Replace `acme` with your workspace address and `storefront` with the project name.
3. Add the file at the root of the default branch of the repository.

If the project does not exist yet, Patchbay adds a project proposal to the [inbox](/inbox). A workspace owner or administrator then opens it and clicks **Create project & start genesis**.

If the project already exists, a project administrator turns on **Catalog sync** under **Sources** in the project settings. [Catalog file](/reference/catalog-file) gives the full format.

</Tab>
</Tabs>

</Step>
<Step title="Create the first release with Genesis" id="genesis">

Genesis is the first release of a project, and it records the starting commit of each component. To complete Genesis, you need the **Release manager** role or higher on the project.

1. If the project has no components yet, open the project and click **Set up genesis**.
2. To add more components, click **Add component** on the Genesis page.
3. When the list is correct, click **Complete genesis**. Patchbay locks the current commit of each component as the starting point of the project.

[Create the first release](/releases/genesis) explains each part of Genesis.

</Step>
</Steps>

## Next steps

After Genesis, click **New release** to start the first version of the project.

<CardGrid>
  <LinkCard href="/releases/versions" title="Work on a version" description="Collect changes in a candidate before you ship them." icon="version" variant="compact" />
  <LinkCard href="/releases/pull-requests" title="Follow pull requests on GitHub" description="Show the release status of each pull request on GitHub." icon="pull-request" variant="compact" />
</CardGrid>

Index of all pages: https://patchbay.unbrikd.com/docs/llms.txt
