# graphql-podcast

**Please familiarize yourself with [GraphQL at The Orchard](https://github.com/theorchard/docs/tree/master/graphql) before contributing!**

## Running

1. Make sure you have `node` version >=16.14.2 and `yarn` installed
2. To install private packages from https://packagecloud.io/

    ```sh
    curl -s https://<PACKAGECLOUD_USER>:@packagecloud.io/install/repositories/orchardit/npm/script.node.sh | bash # configure packagecloud.io
    ```

3. Select development version of node `nvm use`
4. Install dependencies: `yarn`
5. Copy the `.env.shadow` file to `.env` and fill in your information
6. Run the server: `yarn start`
7. Open your browser at [http://localhost:8080/graphql](http://localhost:8080/graphql)

## Running graphql-service with frontend service
1. This service uses jwt-service-handler private package. The package defaults to use QA auth0 creds for jwt token validation on local graphql setup. Make sure to use qa auth0 creds in your frontend service local setups so that they generate QA jwt and pass on in graphql calls.
