A repo which demonstrates GraphQL basics.
The app contains a start
and a finish
folder.
The start
folder contains the bones of the app, with select files left blank that we are going to fill out.
The finish
folder contains the completed app, including comments and examples to help demonstrate additional concepts. Note that we even have an alternate User Service schema which demonstrates more schema concepts at finish/db/schema_ALTERNATE.js
.
Note that if you want the final
version of the app to work you'll need to do each of the below commands in the final
folder too.
- From the top level of this repo, enter the shell command (for Mac users) to install all dependencies and check out the first commit tag.
cd start && npm i && git checkout 1-setup
-
Copy the
start/.env.sample
file as.env
. -
From within the
start
folder run the npm command to create thestart/db/store.sqlite
file:
npm run db:create
This repo's commit history is tagged at multiple points so that you can easily move from checkpoint to checkpoint in the app creation process. If you want to see a list of all of the tags in this repo type git tag -l
.