navasakthi_kamakshi

Navasakthi Kamakshi Temple — Booking App (Phase 1)

Phase 1 covers: file-based data storage, staff login (owner/staff roles), and owner-side item management (add/edit/delete services & products with photo capture and stock tracking). Customer-facing booking pages, the “My Bookings” login, and the staff bookings/payment dashboard are Phase 2–3.

How data is stored

No database — everything lives in JSON files under /data:

Photos are saved as actual files under /uploads/items/.

/data/.htaccess blocks direct browser access to the JSON files (Apache). Do not remove it — without it, anyone could download the customer list by visiting the file’s URL directly.

Deploying to Hostinger

  1. Upload the entire temple-app folder contents to your public_html (or a subfolder, if this should live at yourdomain.com/temple).
  2. Make sure /data and /uploads/items are writable by PHP (Hostinger’s default permissions are usually fine; if you get a “could not save” error, set both folders to permission 755 via File Manager, or 775 if that’s not enough).
  3. Visit https://yourdomain.com/setup.php in your browser.
  4. Fill in your name, choose a username and password — this creates the first owner account.
  5. Delete setup.php from the server immediately after this step. It’s only meant to run once; leaving it up would let anyone create their own login.
  6. Go to https://yourdomain.com/admin/login.php and log in.

Adding staff logins

There’s no “add staff” screen yet in Phase 1 — for now, ask me and I’ll either add that screen in Phase 2, or I can give you a one-off snippet to create additional staff logins directly.

What’s in Phase 1

Coming in later phases