# NestJS Project

## Setup

### Installation
Install dependencies:
   ```sh
   npm ci
   ```

### Environment Variables
Ensure you have a `.env` file with the necessary environment variables configured.  
Please make a copy from .env.example file to .env and add the corresponding values.

## Running the Project
To start the development server, run:
```sh
npm run dev
```

## Database Migrations

### Create a Migration
```sh
npm run migration:create --name=<migration_name>
```

**Example:**
```sh
npm run migration:create --name=products_table
npm run migration:create --name=alter_products_table_add_price_column
```

### Run Migrations
```sh
npm run migration:run
```

### Revert Migrations
```sh
npm run migration:revert
```

## Seeders
To run seeders, execute:
```sh
npm run seed
```

## Generate a Module
To generate a new module using NestJS CLI, run:
```sh
nest g resource modules/<module-name> --no-spec
```
