> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pingoai.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Ambiente local sem Docker

> Como subir backend, channel e frontend localmente para desenvolvimento.

## Pre-requisitos

* Node.js instalado.
* PostgreSQL, Redis e RabbitMQ em execucao.
* Opcional: MinIO para anexos.

## 1) Backend (`Backend-1`)

```bash theme={null}
cd Backend-1
npm install
npm run db:migrate
npm run db:seed
npm run dev:server
```

Padrao de porta: `8080` (`PORT=8080`).

## 2) Channel (`channel-2`)

```bash theme={null}
cd channel-2
npm install
npm run db:migrate
npm run db:seed
npm run dev:server
```

Padrao de porta do servico: `3003`.

Observacao: o script `db:migrate` do channel chama `copy:migrations`; valide se o script auxiliar existe no seu ambiente.

## 3) Frontend (`frontend`)

```bash theme={null}
cd frontend
npm install
npm run dev
```

Padrao de porta: `3000`.

## Ordem recomendada de bootstrap

1. Subir Postgres/Redis/RabbitMQ (e MinIO se necessario).
2. Rodar migrations/seeds no backend e channel.
3. Subir backend.
4. Subir channel.
5. Subir frontend.

## Variaveis minimas (resumo)

* Backend e channel: `DB_*`, `JWT_*`, `REDIS_URI`, `RABBITMQ_URI`, `RABBITMQ_QUEUE_NAME`.
* Frontend: `REACT_APP_BACKEND_URL`.

Use os arquivos `.env.example` de cada modulo como base.
