🛒 LEW Compound Larder

Stock · cash · accountability

Connecting…

🔧 One-time Firebase Setup

Connects the whole family to one shared inventory + cash balance.

  1. Go to console.firebase.google.com and sign in.
  2. Add project → name it e.g. lew-larder.
  3. Add a Web app → copy the firebaseConfig object.
  4. Build → Realtime Database → Create (test mode is fine to start).
  5. Rules tab → publish:
    {
    "rules": {
      ".read": "auth != null",
      ".write": "auth != null"
    }
  6. Authentication → Sign-in method → Anonymous → Enable.
  7. Paste config below and Save.

databaseURL is required (Realtime Database).

⚖️ Who Owes / Who’s Ahead

⚡ Needs Restock

🛒 Take Items

Taking food increases what your family should put back (as food or cash).

📦 Add Food to Inventory

Restock the shelves. Enter what you paid — that $ settles your balance the same as cash.

This is the money side of the restock. Same effect on balance as Cash In.

➕ Add New Item

📁 Categories (PAR = total desired stock)


👨‍👩‍👧‍👦 Families

💵 Cash In (no food)

Cash is treated like inventory value. Paying cash settles your balance the same way as bringing $ worth of food.

How this works

Balance = (food costs paid + cash in) − (value of food taken).

Behind $20? Either bring ~$20 of groceries or put $20 cash in. Same result on the books.

🛍️ Shop / Restock Guide

Pick who is shopping. You’ll see what they owe and exactly what the larder is short on — so they can go to the store with a clear list and budget.

📋 Inventory by Category

PAR is total desired qty for the category. Tap to expand.

⚖️ Balances

📊 Overview

📜 Recent Activity

Tap Edit on a take to fix quantity, or Delete to undo it (stock is adjusted).

⚙️ Data & Connection

Clear History removes takes, food adds, and cash records — inventory counts stay as they are.

Shared live data via Firebase.