/personal-logger

Webapp for tracking personal diet, sleep, and general wellness

Primary LanguageJavaScript

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;
    }
  }
}