backend-setup-stacklisted
Install: claude install-skill WESTsyre21/setup-backend-stack
# Skill: Docker + PostgreSQL + Node.js + ORM Stack Setup
## Objective
Scaffold a containerized local development ecosystem connecting an Express
backend to a Dockerized PostgreSQL instance via Prisma or Sequelize, with
automated version-controlled migrations and a verified health endpoint.
---
## Phase 1 — Capability Check & ORM Selection
**Check your environment first:**
- Do you have filesystem write access? Can you run shell commands?
- If **yes**: execute commands directly and report outputs.
- If **no**: print every command and file content verbatim; ask the user to run them and paste results back.
**ORM Selection Rules (strictly in order):**
1. If the user explicitly writes `Sequelize` (case-insensitive) → use Sequelize.
2. If both ORMs are mentioned or the request is ambiguous → ask: *"Which ORM do you prefer: Prisma or Sequelize?"*
3. Otherwise → default to **Prisma**.
**Record your state.** Create or update `.claude_history/setup_status.md` with:
- Chosen ORM and framework
- DB connection string template
- Checklist of phases (unchecked at start, checked as you complete them)
---
## Phase 2 — Structural Scaffolding
Run or print these commands in order:
```bash
# 1. Confirm Docker
docker --version
docker compose version # or: docker-compose --version
# 2. Init npm (skip if package.json already exists)
npm init -y
# 3. Install runtime dependencies
npm install express
# 4. Install ORM dependencies
# For Prisma:
npm install @prisma/client && npm inst