Overview
The Reindex Starter Kit is a sample code that helps developers get started with Reindex, React, and Relay. It provides a basic setup for a GraphQL-powered application and offers an easy way to deploy the application to a static page hosting platform.
Features
- Reindex, React, and Relay Integration: The starter kit combines Reindex, React, and Relay to create a powerful GraphQL-based application.
- Easy Installation: The project provides step-by-step instructions and code snippets for easy installation and setup.
- GraphiQL Playground: The kit includes a GraphiQL playground to easily explore and interact with the GraphQL API.
Installation
- Fork and clone the repository.
- Install the Reindex CLI library.
- Login to Reindex using your URL and token.
- Add your REINDEX_URL to ./src/config.js.
- Install the project dependencies.
- Fetch the current version of your GraphQL schema and add it to git (ReindexSchema.json).
- Fetch the Relay schema and save it as ./data/schema.json.
- Run the application using the command “npm start” and open it on localhost:3000.
- Use the GraphiQL playground to interact with the GraphQL API.
- Note that authentication will only work after enabling authentication providers in the Reindex console.
Summary
The Reindex Starter Kit is a useful resource for developers looking to build GraphQL-powered applications using Reindex, React, and Relay. It provides a convenient setup and deployment process, along with integration of essential features such as a GraphiQL playground.