Earthly Eats is a PHP and MySQL wellness platform with separate user and admin areas. It covers account management, BMI tracking, personalized diet and yoga planning, shopping and order flow, payment handling, reports, analytics, and Chatbase-assisted support on the user dashboard when configured.
- PHP with PDO/MySQL
- Plain JavaScript
- CSS with shared styles in
css/ - Bundled vendor assets:
vendor/phpqrcodevendor/chart.umd.min.jsvendor/jspdf.umd.min.js
index.php,privacy.php,terms.php: public pagesconfig.php: bootstrap, security headers, session handling, env-backed config, shared helpersuser/: user authentication, dashboard, plans, orders, classes, payment, profileuser/api/: authenticated user endpointsadmin/: admin authentication, dashboard, catalog management, orders, reports, analyticsadmin/api/: authenticated admin endpointscss/,js/,images/: shared frontend assetstemp/: runtime-generated QR codes and rate-limit storageuploads/avatars/: uploaded user avatarsdatabase.infinityfree.sql: schema and seed data
- User signup, signin, profile management, and session protection
- Admin login and admin activity logging
- BMI and BMR calculation with saved user metrics
- Diet template management and generated 7-day diet plans
- Yoga template management, scheduled classes, and generated yoga plans
- Shopping list, order placement, payment flows, and order tracking
- Reports, analytics, visitor counting, and referral support
- Chatbase integration on the user dashboard when configured
- Copy
.env.exampleto.env. - Set your database credentials and application values in
.env. - Create a MySQL database.
- Import
database.infinityfree.sql. - Make sure PHP can write to:
temp/qrcodes/temp/security/uploads/avatars/
- Serve the project from your PHP web root.
Example local URL:
http://localhost/website
If you host the project in a subdirectory, set APP_URL to that full base URL.
The app reads configuration from .env and falls back to safe repository defaults.
Required for real use:
DB_HOSTDB_NAMEDB_USERDB_PASS
Common optional settings:
APP_URL: explicit base URLAPP_HOST: trusted host overrideAPP_ENV:developmentorproductionEE_FORCE_HTTPS:1in production behind HTTPS, otherwise0CHATBASE_CHATBOT_ID: enables the dashboard chatbotSUPPORT_EMAIL: replaces hardcoded support/contact email addressesUPI_PAYEE_ID: UPI receiver ID shown on the payment pageUPI_PAYEE_NAME: UPI receiver display name
The SQL file includes a demo admin account for first login:
- Email:
admin@example.com - Password:
ChangeMe123!
Change this immediately after import.
This repository is prepared so environment secrets and runtime files stay out of Git:
.envis ignored- generated avatar uploads are ignored
- generated QR images are ignored
- rate-limit JSON files are ignored
Keep production secrets only in .env or server environment variables.
git init
git add .
git status
git commit -m "Initial commit"Then create a GitHub repository and connect it:
git remote add origin <your-github-repo-url>
git branch -M main
git push -u origin main