Skip to content

caprica-Six/next-apollo-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 56.9%
  • JavaScript 29.2%
  • CSS 13.9%