Next.js with GraphQL & Apollo Server
Installation
Run the packages
Navigate to your client/server apps and run
npm i or yarn
Build the front-end client app before starting.
npm run build or yarn build
Start Apollo server
Navigate to /server
yarn start
Start Client front-end app
Navigate to /client
yarn start
Test the client
npm test or yarn test
Update snapshots
yarn test -u
yarn --updateSnapshot
Apollo Server:
http://localhost:3000
,
Client front-end app:
http://localhost:4000
,
run Cypress for end-to-end testing
yarn cy:open or npm run cy:open