1 | ## Usage of Environment Variables
|
2 |
|
3 | This app uses a few environment variables which are required for development. The production build uses values directly injected by the server serving this app.
|
4 |
|
5 | We use [dotenv](https://github.com/motdotla/dotenv) for setting environment variables for development. Create a `.env' file in the root directory (wherever package.json is) and set the following values. Replace accordingly for testing.
|
6 |
|
7 | ```
|
8 | PORT=3000
|
9 | NODE_ENV=development
|
10 | GRAPHQL_ENDPOINT=http://localhost:8090/v1alpha1/graphql
|
11 | HEADER_STRING='{}'
|
12 | VARIABLE_STRING='{}'
|
13 | QUERY_STRING='query { test_table { id } }'
|
14 | ```
|
15 |
|
16 | **Note**
|
17 | The .env file should not be in version control.
|