An opinionated React-Apollo-Graphql serverless (using Graphcool) boilerplate
- Uses
create-react-app
,now.sh
,graphcool-framework
and Apollo (withapollo-boost
) - Opinionated
eslint
config - Few features included :
- Signup
- Login / Logout
Create an account on Graphcool
❯ npm install -g graphcool-framework
❯ graphcool login --token "<Your Token>"
❯ git clone git@github.com:Cycymomo/rag-n-cool.git <YOUR PROJECT NAME>
❯ cd <YOUR PROJECT NAME>
❯ npm i
-
If you want to contribute to an existing Graphcool project :
- Ask to become a collaborator
-
If you want to create a new Graphcool project :
- Delete
.graphcoolrc
file - Run
❯ graphcool deploy
- Follow the step to choose your deployment preferences
- Modify
src/index.js
and put your Project ID (inserted in.graphcoolrc
freshly created)
- Delete
Code is in the src
directory
❯ npm start
Code is in the server
directory
- Nothing to do if it's in Graphcool Cloud just
graphcool deploy
when you want to update your schemas / functions - See Graphcool doc if it's in a local Docker
Now.sh
is used for easy deployment (each PR is deployed).
If you want to deploy, just type :
❯ now