# Arun Shield Security Services — source delivery

Website source for the Arun Shield Security Services site (manpower supply,
security guards, bouncers, housekeeping and related services in Hyderabad).

## What is inside

| Path | Contents |
| --- | --- |
| `src/` | All application code: pages, components, styles, data |
| `src/routes/` | One file per page — `/` home, `/about`, `/services`, `/contact`, `/blog`, `/blog/$slug`, `/admin` |
| `src/lib/site.ts` | **The only place contact details live** — phone numbers, WhatsApp link, email addresses, GSTIN, address, Google Maps link |
| `src/lib/services.ts` | The manpower services list shown on the home and services pages |
| `src/lib/clients.ts` | The client names and logos shown in the orbit on the home page |
| `src/components/site/` | Header, footer, floating call/WhatsApp buttons, client orbit, call-to-action band |
| `src/assets/*.asset.json` | Pointers to the site photos as served by Lovable's media storage |
| `media/` | Copies of all 21 photos used on the site, so the pictures travel with this ZIP |
| `drizzle/migrations/` | Database schema: blog posts table, admin roles, row-level security policies |
| `supabase/config.toml` | Backend project settings (managed by Lovable) |

## Tech

TanStack Start (React 19 + Vite), TypeScript, Tailwind CSS v4, shadcn/ui
components, and a hosted Postgres database with auth for the blog admin.

## Running it locally

```sh
npm install        # or: bun install
npm run dev        # http://localhost:8080
npm run build      # production build
npm run test       # test suite
```

The `.env` file that points the app at its database is generated by Lovable and
is **not** included in this ZIP — it is created automatically when the project
runs inside Lovable. Without it, the pages render but the blog has no data.

## Blogging

- `/blog` lists published posts; `/blog/<slug>` shows one post.
- `/admin` is the blogging panel — sign in with the single admin account, write,
  edit, publish or unpublish posts. Public sign-up is disabled, so no one else
  can create an account.
- Posts are stored in the `posts` table. Visitors only see rows where
  `published = true`; only an account with the `admin` role can write.
- `/blog` is the page a future blog subdomain will point at.

## Contact details

Edit `src/lib/site.ts` and the whole site updates — header, footer, contact
page, call button, WhatsApp button and map link all read from that one file.

## Hosting

The site is published on Lovable hosting, which serves the server-rendered
pages and the database together. A shared cPanel host cannot run it as-is
because the blog and admin panel need a server and a database.
