# graphql-analytics

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

#### GraphQL Playground

[https://qa-graphql-analytics.theorchard.io/graphql](https://qa-graphql-analytics.theorchard.io/graphql)

### Running locally

1. Make sure that you have `nodejs` installed on your system

2. To install private packages from https://packagecloud.io/

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

3. Install project dependencies

```
$ yarn install
```

4. Copy the `.env.shadow` file to `.env`:

```
$ cp .env.shadow .env
```

### Building Docker image in local

To build local Docker image run:

```
docker compose build
```

You will get the images:

-   service
-   service-deploy
-   lint-and-test
-   integration-tests
