Companion project for Migrating from REST to GraphQL: A Step-by-Step Guide for Express.js and Angular.
Terminal 1:
cd server
npm install
npm startTerminal 2:
npm install --legacy-peer-deps
npm startOpen http://localhost:4200 and switch between REST and GraphQL modes.
- REST endpoints live at
/api/users - GraphQL endpoint lives at
/graphql - Both operate on the same in-memory user list so readers can compare request shape and client code