Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.55 KB

README.md

File metadata and controls

58 lines (43 loc) · 1.55 KB

GT Web Dev Website

About

GT Web Dev website

Requirements

Get Started

Clone Repo

git clone https://github.com/gt-webdev/gt-webdev-website

Start the app

npm install
npm run dev

Open http://localhost:3000 to view it in the browser.

How to Add Firebase API Credentials

Refer to credentials document for link to .env file

Create .env file with following content (derived from Firebase Admin SDK JSON) and place the file in the root of the repository folder:

firebase_type="..."
firebase_project_id="..."
firebase_private_key_id="..."
firebase_private_key="..."
firebase_client_email="..."
firebase_client_id="..."
firebase_auth_uri="..."
firebase_token_uri="..."
firebase_auth_provider_x509_cert_url="..."
firebase_client_x509_cert_url="..."

How to Promote a Firebase User to Admin

Add Firebase credentials via .env file (mentioned above)

Then run the following command:

node scripts/promote-to-admin.js user_uid

The ID for a user can be found in Firebase:

Firebase User ID Location

How to Login as an Admin User