simpletut / Universal-React-Apollo-Registration

Open Source Universal User Registration System – NodeJS React Apollo GraphQL JWT MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

variable.env

cichy opened this issue · comments

There is no variable.env file. I followed the instructions and I get an Error: Environment variable 'dbString' is not defined.

We no longer use the variable.env to define environment variables. (Documentation needs to be updated)

The application is programmed to exit if the important env vars are not defined.

Before you try and run the application, set the env var using the following:

(Mac)
export dbString=<Your-dbString >

Please note: Windows users should use 'set' instead of 'export'

still getting the same error

I am closing this issue as it is not an error in the code.

Make sure you do not leave any gaps between the var name and value i.e <name>=<value>

Example:

export dbString=<Your-dbString>

If you still get the same message, log your current env var/s to the console and check it has been defined.