UNPKG

670 BMarkdownView Raw
1## Usage of Environment Variables
2
3This 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
5We 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```
8PORT=3000
9NODE_ENV=development
10GRAPHQL_ENDPOINT=http://localhost:8090/v1alpha1/graphql
11HEADER_STRING='{}'
12VARIABLE_STRING='{}'
13QUERY_STRING='query { test_table { id } }'
14```
15
16**Note**
17The .env file should not be in version control.