# MONO Setup Guide

This guide is for buyers who want the shortest path from folder to running site.

## Requirements

- Windows 10/11, macOS, or Linux
- Node.js 18 or newer
- npm
- Optional for Android: JDK 17 and Android SDK/API 35

## Run On Windows

1. Open the MONO folder.
2. Open PowerShell in this folder.
3. Run:

```powershell
npm install
npm start
```

4. Open:

```text
http://localhost:5173
```

## Configure TMDB

1. Copy `.env.example` to `.env`.
2. Add your own TMDB token or API key:

```env
TMDB_READ_ACCESS_TOKEN=your_tmdb_read_access_token
TMDB_API_KEY=your_tmdb_api_key
```

The read access token is preferred. Do not commit or resell a folder containing someone else's real keys.

## Accounts And Data

Local demo accounts are stored at:

```text
netlify/functions/.data/local-db.json
```

On Netlify, the JSON fallback uses temporary function storage so signup will not crash, but that data can disappear after a cold start or redeploy. For production, set `DATABASE_URL` or `NETLIFY_DATABASE_URL` and run `database/schema.sql` against your PostgreSQL database.

## Android APK

The Android project is in:

```text
../mono-android-app
```

Build debug APK:

```powershell
.\gradlew.bat assembleDebug
```

APK output:

```text
app/build/outputs/apk/debug/app-debug.apk
```

## Before Selling Or Handing Off

- Remove `.env`.
- Remove `netlify/functions/.data/local-db.json`.
- Replace screenshots with your own.
- Make sure the buyer has legal rights to every content source they configure.
- Run `npm run check` and `npm test`.
