Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1012 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 1012 Bytes

Apollo MockedProvider Demo

TypeScript

About

This repo is a the demo code for how to use @apollo/client's MockedProvider to mock your graph so that you can build your frontend application, even if the graph is not ready yet.

The full article explaining how this is done can be found at here: https://medium.com/swlh/building-frontend-applications-by-mocking-your-entire-api-with-testing-tools-2f050359677f

Instructions

This project was bootstrapped with Create React App.

  1. Clone the repo
git clone https://github.com/laij84/apollo-mocked-provider.git
  1. Install dependencies

In the project directory, you can run:

yarn
  1. Start the application

In the project directory, you can run:

yarn start