A platform for managing personal carbon emissions. Users may sign up with their google account and, once signed in, may set goals, track progress and view tips for reducing their carbon footprint.
Website is available at https://carbon-calc-e7c4c.firebaseapp.com/
- Allows user to fill out carbon footprint survey, display results real-time.
- Allows user(me) to create secure account with Google authentication.
- Allow user to set goal and track progress, with data displayed in a stacked line chart.
- Allow creation and deletion of surveys in Firebase.
- Show tips to reduce carbon emissions.
- Allow account deletion.
-
Open terminal
-
Move to desired folder
-
Type
$ git clone https://github.com/rogueminx/carbon-calculator
-
Type
$ cd carbon-calculator
to move to directory. -
You will need to have your OWN firebase key to use this as your own. Go to 'https://console.firebase.google.com/u/0/' and create an account if necessary.
-
Click on the big '+' to add a project, and give that project a name.
-
Once project is created, click the large </> button to "add Firebase to a web app" A popup will come up with the following information:
apiKey: "xxxxxxxxx", authDomain: "xxxxxxxxx", databaseURL: "xxxxxxx", projectId: "xxxxxxxxx", storageBucket: "xxxxxxxxx", messagingSenderId: "xxxxxxxxx"
-
Type
$ touch src/app/api-keys.ts
for storing your own API Key -
Open the .api-key file and type
export var masterFirebaseConfig = {}
then type your own API key info from Firebase within the curly brackets at the end. Save and close. -
Move back to terminal, set up appropriate nodes by typing:
$ npm install
-
Type
$ ng build
-
To view the website, type :
$ ng start
and navigate tohttp://localhost:4200/
None
Please contact us through github with questions.
- HTML
- CSS
- Javascript
- Webpack
- Angular
- Typescript
- Firebase
Copyright (c) 2018 Anna Marie Cooper, Kayla Ondracek, Russell Hofvendahl, Cameron Anderson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.