Management and data viewing portal for recycling department administrators.
This is part of a suite of apps made for Georgia Tech's OSWM&R, which also includes:
Until you add credentials, the project will not run, and there will be an error about missing imports. Credentials are required for both development and deployment.
firebase.ts
and place it in the src/environments
directory, and export the Firebase config object as default
src/environments/firebase-template.ts
, is provided as a reference for this step. This file doesn't do anything else.It is not necessary to secure Firebase API keys like this, but we do so as an extra layer of security.
This project uses Firebase services: Authentication, Firestore, and Functions.
To run locally for development:
npm i
functions
folder to install Firebase functions dependencies: cd functions
, npm i
npm start
seedRouteRecords
and seedCheckinRecords
) to help you by seeding some data.This uses Angular's Github Pages deploy tool, and deploys built files to a private Github Pages instance.
ng deploy --base-href=/pages/dscgt/recycling_website_dist/ --repo=https://github.gatech.edu/dscgt/recycling_website_dist.git --branch=master --name="your_gatech_display_name_here" --email="your_gatech_email_here"
There is no need to build beforehand, this is done automatically.
firebase deploy --only functions:functionname1,functions:functionname2
For example, firebase deploy --only functions:generateExcelSheet
will deploy only the generateExcelSheet() endpoint.
More information: \ https://firebase.google.com/docs/functions/manage-functions#deploy_functions \ https://firebase.google.com/docs/cli#deploy_specific_functions
You shouldn't have to do this that often (or at all), since both running for development and deploying to production build automatically.
Building for production:
npm run build-prod
Building for development:
npm run build
Built files are placed in a /dist
directory.
Made by the Developer Student Club at Georgia Tech.