Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scaphold-io/react-apollo-starter-kit
Scaphold.io's Starter Kit for building React-Apollo apps https://scaphold.io
https://github.com/scaphold-io/react-apollo-starter-kit
apollo boilerplate graphql react scaphold
Last synced: 19 days ago
JSON representation
Scaphold.io's Starter Kit for building React-Apollo apps https://scaphold.io
- Host: GitHub
- URL: https://github.com/scaphold-io/react-apollo-starter-kit
- Owner: scaphold-io
- License: other
- Created: 2016-09-26T21:37:55.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-25T11:13:09.000Z (over 7 years ago)
- Last Synced: 2024-07-31T19:16:05.708Z (3 months ago)
- Topics: apollo, boilerplate, graphql, react, scaphold
- Language: JavaScript
- Size: 327 KB
- Stars: 63
- Watchers: 8
- Forks: 31
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#Scaphold.io's React Apollo boilerplate
Fork this boilerplate code to get started with GraphQL, React, and Apollo.
**Quickstart:**
1) Go to Scaphold.io (https://scaphold.io).
2) Create an account and dataset.
3) Change the URL in the API manager (config.js) in the boilerplate to point to your unique Scaphold.io API URL.
5) Install dependencies: ```npm install```
4) 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:
1) ```npm run build``` to transpile ES6 code from the src/ directory to JavaScript in the lib/ directory.
2) ```npm run wp``` to set the environment variable ```process.env.NODE_ENV = 'production'```, allow webpack to build your code from lib/, and save it to the build/ directory.