TATTVAM-MARKETS

Expo Lead Form (standalone)

PHP + MySQL app: public lead form + admin dashboard. This folder is the only app — Next.js /expo is a proxy into it.

Open ACCESS.html for all URLs, or use:

How URL
Lead form (via frontend) http://localhost:3000/expo
Admin (via frontend) http://localhost:3000/expo/admin/
Direct PHP (no frontend) http://127.0.0.1:8091/
Direct PHP admin http://127.0.0.1:8091/admin/

Frontend rewrites /expo → http://127.0.0.1:8091 (EXPO_LEADFORM_UPSTREAM). Start PHP first (start-local.bat), then npm run dev in frontend/ if you need the :3000 URLs.

Copy as a new project

  1. Copy this whole folder to another location, for example:
    • C:\xampp\htdocs\expo-leadform
  2. Do not copy includes/config.php if you want a fresh install. Use includes/config.example.php only as a reference.
  3. Point Apache/XAMPP at that folder, or run start-local.bat.

Requirements

First-time setup

  1. Start MySQL (XAMPP Control Panel).
  2. Open the app in the browser.
  3. Complete setup.php (creates database, tables, first admin, and includes/config.php).
  4. Open:
    • Form: /index.php
    • Admin: /admin/

Local PHP server (no Apache)

Run start-local.bat or:

php -S 127.0.0.1:8091 router.php

Then open:

Folder map

Email / SMS

After install, log in as admin:

Until email is connected, OTP stays in test mode.