caprica-Six / next-apollo-demo

Simple Next.js example with Apollo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple Next.js example with Apollo


Languages

Language:TypeScript 56.9%Language:JavaScript 29.2%Language:CSS 13.9%