GT Web Dev website
- NodeJS 18.x
- Tip: install it using nvm to easily manage versions
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.
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="..."
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:
- Visit http://localhost:3000/login
- Enter the credentials for the admin Firebase user account