# Environment Configuration

## Setup Instructions

1. Copy `.env.example` to `.env`:
```bash
cp .env.example .env
```

2. Update the values in `.env` with your actual configuration.

## Environment Variables

### `.env.example`

```env
# Server Configuration
PORT=3000

# Database Configuration
DB_HOST=localhost
DB_USER=root
DB_PASSWORD=password
DB_NAME=revisa
DB_CONNECTION_LIMIT=10

# Application Environment
NODE_ENV=development
```

## Variable Descriptions

| Variable | Description | Default | Required |
|----------|-------------|---------|----------|
| `PORT` | Port where the API server will run | 3000 | Yes |
| `DB_HOST` | MySQL database host | localhost | Yes |
| `DB_USER` | MySQL database user | root | Yes |
| `DB_PASSWORD` | MySQL database password | password | Yes |
| `DB_NAME` | MySQL database name | revisa | Yes |
| `DB_CONNECTION_LIMIT` | Maximum number of concurrent database connections | 10 | No |
| `NODE_ENV` | Application environment (development/production) | development | No |

## Security Notes

- **Never commit** the `.env` file to version control
- Use strong database passwords in production
- Ensure `.env` is listed in `.gitignore`
- Use different credentials for development and production environments

