A simple React app to show how to use Apollo Rest Link in a modern TypeScript client application. Showcases use of core concepts such as nested queries, mutations, use of types, manual cache updates, use of Fragments and the @export
directive.
- JS Version: ES6 / TypeScript
- Scaffolding: Create React App
- Unit/Integration Testing: Jest and RTL
- State Management: Apollo Client
- Styling: Styled Components
- Formatting: Prettier
- REST Backend: JSON Server
# Clone the repo
git clone [email protected]:narvidas/apollo-rest-link-example.git
# Install dependencies
yarn install
Run mocked REST API, then React app:
yarn start:api
yarn start:ui
Or start both concurrently:
yarn start
yarn test