Skip to content

A quickstart template for building an app with Motion, Relay and Reindex

License

Notifications You must be signed in to change notification settings

reindexio/reindex-starter-kit-motion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reindex-starter-kit-motion

Sample code to get started with Reindex, Motion and Relay.

Fork and clone the repository.

Install Motion and Reindex

npm install -g motion reindex-cli

Set REINDEX_URL env variable to be your be your Reindex app url. Set REINDEX_TOKEN to be your Reindex admin token.

export REINDEX_URL="https://YOUR-REINDEX-APP.myreindex.com"
export REINDEX_TOKEN="YOUR-REINDEX-TOKEN"

Create file Config.js

const Config = {
  REINDEX_URL: 'https://YOUR-REINDEX-APP.myreindex.com',
}

export default Config;

Fetch current version of your GraphQL schema (you can add ReindexSchema.json) to git after that. Also fetch Relay schema (saved as ./.motion/RelaySchema.json).

bin/reindex schema-fetch ReindexSchema.json
bin/schema-relay

Run and open on localhost:3000

motion

Play with GraphiQL

npm run graphiql

Note that authentication will work only once you enable authentication providers inside your Reindex console.

About

A quickstart template for building an app with Motion, Relay and Reindex

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published