46
GitHub - bvaughn/personal-logger: Webapp for tracking personal diet, sleep, and...
source link: https://github.com/bvaughn/personal-logger
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Try it out by signing in with your Google, Github, or Twitter accounts at personal-logger.now.sh.
Local Installation
This application was built with create-react-app
. To run it locally, clone this repository and then:
yarn install
yarn start
Firestore Configuration
Indexes
This application relies on a single collection, "entries", with a single index on the following fields:
- user, ascending
- `$category`, ascending
- date, descending
Rules
Security for this application relies on the following rules:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
// Authenticated users can access data that is explicitly associated with them.
allow read, update, delete: if request.auth.uid != null &&
request.auth.uid == resource.data.user;
// Authenticated users can create new records.
allow create: if request.auth.uid != null;
}
}
}
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK