# ⚙️ Web dev stack (Node + pnpm + tooling)

## Goal

Install a modern, reproducible stack.

---

## 1) Install Node via nvm

```bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
source ~/.zshrc
```

Install Node LTS:

```bash
nvm install --lts
nvm alias default 'lts/*'
```

---

## 2) Activate pnpm

```bash
corepack enable
corepack prepare pnpm@latest --activate
pnpm setup
exec zsh
```

---

## 3) Working tree

Create a dev folder:

```bash
mkdir -p ~/dev
cd ~/dev
```

⚠️ Do not work inside `/mnt/c` (slow I/O).

---

## 4) Conventions

- ❌ No global Angular install
- ✅ Use `pnpm dlx`
- ✅ Versions pinned per project

---

## 5) Useful commands

```bash
pnpm install
pnpm run dev
pnpm run build
pnpm run test
```

---

## 6) VS Code

Recommended extensions:

- WSL
- Angular Language Service
- ESLint
- Prettier
- GitLens

---

## 7) Docker

Install Docker Desktop (Windows).

Enable:

- Settings → WSL Integration → Debian

Test:

```bash
docker ps
```

---

## Result

- Stable environment
- Clean version management
- Team-compatible
