Skip to content

Environment Variables

jwiggenhorn edited this page Nov 5, 2022 · 2 revisions

Table of Contents

    1. Introduction
    There are 9 different environment variables that need to be set to run the DRC Admin Panel. This article provides a description of each one as well as instructions for how to set their values. By the end your .env.local file should look something like this:
    1. Example .env.local contents
    MONGODB_URI="mongodb://localhost:27017/drc"
    GOOGLE_CLIENT_ID=123456789-q1w2e3r4t5y6u7i8o9p.apps.googleusercontent.com
    GOOGLE_CLIENT_SECRET=ABCDEF-ghijk-1lmnop2qrstu3v4wxyz
    NEXTAUTH_SECRET=X>XiE;/X-=yO%Beueb-?YL~"z0!/La
    NEXTAUTH_URL=http://localhost:3000/
    PROJECT_ID=your-project-id
    CLIENT_EMAIL=service-account-user@your-project-id.iam.gserviceaccount.com
    PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nreallyLongBase64encodedString\n-----END PRIVATE KEY-----\n"
    BUCKET_NAME=bucket-name
    Clone this wiki locally