GraphQL API Explorer for Learners Guild services.
-
Globally install nvm, avn, and avn-nvm.
curl -o- https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash npm install -g avn avn-nvm avn setup -
Clone the repository.
-
Setup and run mehserve. Then figure out which port you intend to use and create the mehserve config file:
echo 9002 > ~/.mehserve/graphiql.learnersguild
-
Set your
NODE_ENVenvironment variable:export NODE_ENV=development -
Get the private and public keys for verifying / extending JWT tokens (see the idm service).
-
Create a
.env.developmentfile for your local environment. Example:PORT=9002 APP_BASE_URL=http://graphiql.learnersguild.meh IDM_BASE_URL=http://idm.learnersguild.meh ECHO_BASE_URL=http://echo.learnersguild.meh JWT_PRIVATE_KEY="<get from IDM service>" JWT_PUBLIC_KEY="<get from IDM service>"
-
Run the setup tasks:
npm install
-
Run the server:
npm start
-
Visit the server in your browser:
open http://graphiql.learnersguild.meh
See the LICENSE file.