Here is how to set up the project from scratch:

1. Install the dependencies:

   ```bash
   pnpm install
   ```

2. Copy the example environment file:

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

3. Generate the database client:

   ```bash
   pnpm db:generate
   ```

4. Run the migrations:

   ```bash
   pnpm db:migrate
   ```

5. Seed some test data:

   ```bash
   pnpm db:seed
   ```

6. Start the dev server:

   ```bash
   pnpm dev
   ```

7. Run the tests in watch mode:

   ```bash
   pnpm test --watch
   ```

8. Build for production:

   ```bash
   pnpm build
   ```

If any step fails, delete `node_modules` and the lockfile, then start again from step 1.

This closing paragraph is the last line of the reply. It must stay fully readable above the copy and time row, and must not run under the next message.
