Giter VIP home page Giter VIP logo

reindex-starter-kit-react's Introduction

reindex-starter-kit

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

Fork and clone the repository.

Install Reindex CLI library

npm install -g reindex-cli

Login to Reindex with your url and token

reindex login

Add your REINDEX_URL to ./src/config.js.

export default {
  REINDEX_URL: 'YOUR-REINDEX-URL',
};

Install dependencies

npm install

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

reindex schema-fetch
reindex schema-relay ./data/schema.json

Run and open on localhost:3000

npm start

Play with GraphiQL

reindex graphiql

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

Deploying

Build minified js and css

npm run build

You can now push public/ directory to your favorite static page hosting. We recommend Surge, but you can also use Github Pages or any kind of hosting like that.

Surge

With Surge CLI you can deploy your app with just a few commands:

npm install -g surge
surge

reindex-starter-kit-react's People

Contributors

freiksenet avatar fson avatar goldensunliu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.