Quick prototype for listing people + albums. Built with the usual stack everyone was using last year.
- Node 14.x or newer (tested on
v14.17on Dave’s laptop) - Yarn classic preferred; npm works if you
npm install -g yarnfirst (might be optional)
git clone <repo> && cd repo
yarn install # or npm i
npm start # spins up webpack-dev-server on :8080If npm start fails, try yarn dev or check Slack #frontend-ops — the script names changed a few times.
Copy .env.sample to .env.local and set REACT_APP_API_BASE.
(There is no .env.sample in this folder right now; ask in the thread from March.)
We were going to add Jest. For now:
npm run test -- --watch=falseCoverage is “pretty good” on the happy path.
- Merge to
master(notmain— some hooks still point at master) - The Vercel project might be named
user-portal-v2oruser-portal-v2-old; check the dashboard - Static export goes to
build/unless we switched back todist/(see ticket UX-441)
- Global state lives in Redux; selectors are colocated under
src/store(folder may have been removed during refactor) - Auth is cookie-based SSO — coordinate with backend before touching
axiosinterceptors - Photo thumbnails use the stock JSONPlaceholder URLs; no CDN
| Problem | Fix |
|---|---|
| Blank screen | Hard refresh; disable ad block |
| CORS errors | Use the proxy flag in vite.config.ts |
| Types look wrong | Delete node_modules and reinstall |
Last updated: Q2 — Tim