#Scaphold.io's React Apollo boilerplate
Fork this boilerplate code to get started with GraphQL, React, and Apollo.
Quickstart:
-
Go to Scaphold.io (https://scaphold.io).
-
Create an account and dataset.
-
Change the URL in the API manager (config.js) in the boilerplate to point to your unique Scaphold.io API URL.
-
Install dependencies:
npm install -
Run with:
npm start
Deployment:
Note: For development, you only need to run npm start
Run npm run deploy.
This will run two scripts automatically:
-
npm run buildto transpile ES6 code from the src/ directory to JavaScript in the lib/ directory. -
npm run wpto set the environment variableprocess.env.NODE_ENV = 'production', allow webpack to build your code from lib/, and save it to the build/ directory.