# Ajit Properties — no database required

The website now reads editable content from `lib/site-content.json`. It starts in local content mode by default, even without an environment file. Eight fictional demo listings and sample testimonials are included. Replace or remove them before publishing real property offers. No MongoDB connection is made unless `CONTENT_SOURCE=mongodb` is explicitly set.

## Run on your computer

Use Node.js 22 or a newer supported release. Open a terminal in the extracted folder containing package.json:

```
npm ci
npm run build
npm start
```

Open http://localhost:3000. For development use `npm run dev`, which opens port 3001.

## HostingRaja

This is a Node.js application. The hosting plan must support a continuously running Node.js app; extracting into public_html alone will not start it.

1. Extract into a private application directory, outside the public document root where possible.
2. In the Node.js application settings, select a supported Node.js version, set the application root to the directory containing package.json, and set the domain/application URL.
3. Set `NODE_ENV=production`, `CONTENT_SOURCE=local` and `NEXT_PUBLIC_API_URL` to an empty value. Leave MongoDB unconfigured.
4. Install dependencies with `npm ci` and build with `npm run build` from the application root.
5. Start using `npm start`. If the panel needs a startup filename, use `server.cjs` instead. Use the port assigned by the host through its PORT environment setting; the domain's web server must route requests to this Node app.
6. Install a trusted SSL certificate with the complete chain for both ajitproperties.com and www.ajitproperties.com. This is a hosting setting, separate from the application.

Panel steps depend on the purchased plan. If there is no Node.js app option, ask HostingRaja to confirm whether the plan supports Next.js server applications. Do not buy a new plan until they confirm.

Do not upload the original ZIP's node_modules or .env.local. Fresh installation uses the security-updated lockfile. Do not expose source files or environment files through the public web server.

## Add content manually

Edit `lib/site-content.json` using a text editor, retaining valid JSON. Each named section controls its corresponding page/section. `Contact` holds the contact page details; `Footer.contactInfo` holds footer details. `HomeAbout.phoneNumber` controls the About phone link. Add map URLs, videos and genuine testimonials when ready. Empty video/review sections stay hidden.

To add a property, insert an object into the `Property` array, for example:

```json
{
  "slug": "your-property-slug",
  "name": "Your property name",
  "location": "Your city",
  "type": "house",
  "status": "available",
  "available": true,
  "featured": true,
  "price": 2500000,
  "bedrooms": 2,
  "bathrooms": 2,
  "area": 1000,
  "description": "Your actual property description",
  "images": ["/assets/img/your-photo.jpg"],
  "videos": [],
  "features": ["Your actual property feature"]
}
```

Use unique slugs and real photos/details. Supported types: apartment, house, villa, condo, land, commercial. Content is read from the JSON file on each page request; refresh after editing. Rebuild/restart if you change code or environment variables. A visual admin panel is not included.

## Enquiries

No message backend was included in the original archive. The form displays an unavailable notice when no API URL is configured and does not claim a message was sent. To enable it, supply a real HTTPS backend implementing POST /api/messages, set NEXT_PUBLIC_API_URL, and rebuild. No enquiries are saved or emailed in the current mode.

## Verification

Security checks: `node tests/security.mjs`
Manual-content checks: `node tests/local-content.mjs`

The earlier security patches are retained. The recorded production dependency audit had zero reported vulnerabilities; five development lint-tool entries remained documented in the security scan report.
