# Development Setup Guide

This document provides detailed instructions for setting up the **Duo Sync Auth** development environment locally.

## 1. Prerequisites

Ensure you have the following installed on your machine before starting:

* **Node.js**: Version 18.x or higher is required. [Download Node.js](https://nodejs.org/)
* **Git**: Required for version control. [Download Git](https://git-scm.com/)
* **IDE**: We recommend [Visual Studio Code](https://code.visualstudio.com/) or Visual Studio 2022.

## 2. Installation

1.  **Clone the repository:**
    ```bash
    git clone <https://github.com/ChaarMatt/duo-sync-auth>
    cd duo-sync-auth
    ```

2.  **Install dependencies:**
    *Note: This project currently requires the `--legacy-peer-deps` flag due to a version mismatch between `date-fns` and `react-day-picker`.*
    
    ```bash
    npm install --legacy-peer-deps
    ```

## 3. Environment Configuration

This application connects to Supabase services (Auth, Database, Realtime). You must configure the environment variables locally.

1.  Create a file named `.env` in the root directory of the project.
2.  Copy the following template into the file:

    ```env
    # Supabase Configuration
    # You can find these in your Supabase Dashboard -> Settings -> API
    VITE_SUPABASE_URL=[https://duo-sync-auth.supabase.co](https://duo-sync-auth.supabase.co)
    VITE_SUPABASE_ANON_KEY=your-public-anon-key
    ```

3.  Replace the placeholder values with your actual project credentials.

> **⚠️ Security Warning:** Never commit your `.env` file to version control. It is already listed in `.gitignore` to prevent accidental leaks.

## 4. Running the Application

To start the local development server:

```bash
npm run dev
