Skip to content

Repository files navigation

graphiql

Code Climate Issue Count Test Coverage

GraphQL API Explorer for Learners Guild services.

Getting Started

  1. 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
  2. Clone the repository.

  3. Setup and run mehserve. Then figure out which port you intend to use and create the mehserve config file:

    echo 9002 > ~/.mehserve/graphiql.learnersguild
  4. Set your NODE_ENV environment variable:

    export NODE_ENV=development
  5. Get the private and public keys for verifying / extending JWT tokens (see the idm service).

  6. Create a .env.development file 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>"
  7. Run the setup tasks:

    npm install
  8. Run the server:

    npm start
  9. Visit the server in your browser:

    open http://graphiql.learnersguild.meh

License

See the LICENSE file.

About

LearnersGuild GraphQL API explorer.

Resources

Contributing

Stars

0 stars

Watchers

12 watching

Forks

Releases

Packages

Contributors

Languages