# <%= appTitle %>

> Generated by `lhx-cli create --template=micro` on <%= year %>.

A TypeScript microservice with Redis (BullMQ) built-in. The web framework is
selected at scaffold time via `--features` (Express is default).

## Quick start

```bash
cp .env.example .env
pnpm install
docker compose up redis -d   # or the full stack: docker compose up --build
pnpm dev
```

## Endpoints

| Endpoint | Description |
| --- | --- |
| `GET /health` | Basic health + uptime |
| `GET /health/livez` | Liveness probe — process alive |
| `GET /health/readyz` | Readiness probe — db + redis reachable |

## Scripts

| Script | What it does |
| --- | --- |
| `pnpm dev` | tsx watch (HTTP server) |
| `pnpm dev:worker` | tsx watch (BullMQ worker) |
| `pnpm build` | tsc → dist/ (both server + worker) |
| `pnpm start` | node dist/server.js |
| `pnpm start:worker` | node dist/worker.js |

## Kubernetes

```bash
kubectl apply -f k8s/
```

## Resources

- 🐛 https://github.com/juwenzhang/lhx-kit/issues
- 📖 https://juwenzhang.github.io/lhx-kit/
