UbermenschDeveloper / graphql-experiments-apollo

Testing Apollo on frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apollo GraphQL experiments

Created by Pavel Davydov

HOWTO

After cloning repo execute

npm run all:dev

This command will create 'dist' folder with 'pseudo-server-side' markup. Unfortunately, production build still won't work with npm run all:prod :(

After that, execute commands:

npm run server

Starts server on localhost:4001 and enabled online GraphQL editor on http://localhost:4001/graphiql

npm run start

Starts client dev-server on localhost:4000

TODO

  • Configure environment
  • Setup apollo server
  • Create skeleton for future site
    • Layout for logged in or guest user
    • Header
    • Search results with 'Load more'
    • Feedback form with feedbacks
  • General GraphQL patterns
  • GraphQL on frontend (Apollo)
    • Query on server
    • Fragments usage
    • Send mutations on server
    • Directly change data in cache
    • Optimistic updates
  • Routing
    • Create 2 pages
  • Setup tests
    • Jest
    • Simple unit tests
    • Snapshots
    • Using enzyme and sinon as helper libs

About

Testing Apollo on frontend

License:MIT License


Languages

Language:JavaScript 99.3%Language:TypeScript 0.7%