https://github.com/dcts/trackyourlife-public
tracking goals
https://github.com/dcts/trackyourlife-public
Last synced: about 1 year ago
JSON representation
tracking goals
- Host: GitHub
- URL: https://github.com/dcts/trackyourlife-public
- Owner: dcts
- Created: 2019-12-05T08:40:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T12:03:49.000Z (over 3 years ago)
- Last Synced: 2025-06-12T07:41:45.939Z (about 1 year ago)
- Language: JavaScript
- Size: 17.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Track Your Life
personal app to track health, meditation, sports and other goals.

### Database & Hosting
- you need a firebase account and the [firebase CLI tools](https://github.com/firebase/firebase-tools). `npm install -g firebase-tools`
- you will need to setup a custom firebase project.
- **database**: you should decide for a database to store all data. I decided to use a firebase firestore.
- **hosting**: firebase provides hosting for free. Just run `firebase deploy --only hosting` inside the main directory and connect your existing firebase project or create a new one.
### Customize
Change the values in `public/js/initWebComponents.js` to customize your goals / colors etc...
### Folder Structure
**public**: all the files hosted on firebase are stored here
**functions**: all cloud functions are store here (not in use yet, but I set it up since I maybe will use it)
### Database Structure
create a `users` collection. Initialize a new entry and put the generated userId inside `firebaseInit.js` (line 29). Then make a subcollection of `days`. This subcollection has to have id's in the form `YYYY-MM-DD`.
### Webcomponents
Jut trying out.
- mycard.js -> the card that holds the doughnut chart with the achievements. Click on the chart to increase, click on the card title on top of the card to decrease the amount.
- mycardcoals.js -> the card that holds 3 switches to activate