# MindHeal Ecosystem Deployment Package

This folder contains the clean, ready-to-deploy codebase for the MindHeal ecosystem.

## Structure
* `frontend/`: The static HTML/CSS/JS frontend application.
* `backend/`: The Node.js API backend, database migrations, and seeds.

## Deployment Instructions

### 1. Frontend
Deploy the contents of the `frontend/` folder to any static hosting provider (e.g., Vercel, Netlify, Firebase Hosting, S3).
* Point the API requests to your deployed backend url using the `mindheal-api-base-url` local storage setting.

### 2. Backend
Deploy the contents of the `backend/` folder to a Node.js hosting platform (e.g., Render, Railway, Heroku, AWS).
* Set up a managed PostgreSQL database and configure `DATABASE_URL` in the environment variables.
* Set up Redis and configure `REDIS_URL`.
* Run database migrations using: `npm run db:migrate`.
* Refer to the `backend/deployment-guide.md` or `.env.example` for all required environment variables (JWT keys, Razorpay credentials, SMTP passwords, etc.).
