-
Notifications
You must be signed in to change notification settings - Fork 66
Environment variables
Damjan Pavlica edited this page Jun 17, 2019
·
8 revisions
To start project locally, you need to create .env
file, with the following environment variables:
# Database credentials (obtain from MongoDB)
DB_NAME=
DB_USER=
DB_PASSWORD=
DB_DOMAIN=
# OAuth 2.0 client IDs (obtain from Google API Console)
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# obtain from Github (have two separate OAuth apps, for local and for production)
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
# whatever random string you like
JWTSECRET=
# use development for local testing
NODE_ENV=development
To obtain credentials, you should create testing MongoDB database.