# @eyjs/bootstrap

Application bootstrap and service loading for the EyJS framework.

## Features

- 🚀 **Application bootstrap** with automatic service discovery
- 🔍 **Pattern-based loading** for services, controllers, and more
- ⚙️ **Configurable loading** with custom patterns and options
- 🔄 **Auto-registration** of discovered services
- 📦 **Service loader** with dependency resolution

## Installation

```bash
bun add @eyjs/bootstrap
```

## Usage

```typescript
import { Bootstrap, ServiceLoader } from '@eyjs/bootstrap';
import { Container } from '@eyjs/di';

const container = new Container();
const serviceLoader = new ServiceLoader({
  container,
  patterns: ['**/*.service.ts', '**/*.controller.ts']
});

const bootstrap = new Bootstrap({
  container,
  serviceLoader
});

// Bootstrap the application
await bootstrap.start();
```

## API

- `Bootstrap` - Main bootstrap class
- `ServiceLoader` - Loads services based on patterns
- `BootstrapBase` - Base bootstrap functionality

## Dependencies

- `@eyjs/di` - For dependency injection
- `glob` - For pattern matching
