← back to Designerrepresentatives
README.md
35 lines
# Designer Representatives
Canonical directory of independent sales reps for designers, showrooms,
and contract specifiers. Sister property of Designer Wallcoverings.
## Stack
- Node 20+, Express 4, EJS views
- Postgres (`designer_representatives` database, table `designer_reps`)
- Standalone — does not touch `dw_unified`, `lawyer_*`, or `doctor_*` DBs.
## Run locally
```bash
cp .env.example .env
psql -c 'CREATE DATABASE designer_representatives;'
PGDATABASE=designer_representatives npm run schema
PGDATABASE=designer_representatives npm run seed
npm install
npm start
# → http://localhost:9924
```
## Deploy (Kamatera)
- pm2 reads `ecosystem.config.js` (port 9924).
- nginx vhost: `/etc/nginx/sites-enabled/designerrepresentatives.com` proxies
`localhost:9924`. Initially HTTP-only on `:80` (DNS flip + Let's Encrypt
comes in a later wave).
## Phase
`build_only` — DNS, Cloudflare, certbot, and Purelymail are deferred to
the DNS-flip wave.