✅ COPY & PASTE THIS INTO AI-CODER (Replit Prompt)
Build a full-stack movie streaming platform inspired by moviepire.net and munowatch.com. The website must include:
________________________________________
🖥 Frontend Features:
•	Home Page with movie listings.
•	Separate sections for:
o	🔄 Translated Movies (include VJ Name)
o	🎬 Non-Translated Movies
•	Each movie page should include:
o	Video player for streaming
o	Movie info: title, genre, language, VJ name (if translated)
o	Download button (link to file or cloud storage)
•	Powerful Search Bar:
o	Search by title, VJ name, genre, or language
________________________________________
🔒 User Authentication:
•	Register, Login, Forgot Password
•	JWT token for protected routes
________________________________________
🛠️ Admin Dashboard:
•	Upload new movies with:
o	Title, Description
o	Upload/Link to movie file
o	Upload poster image
o	Select if it’s Translated or Non-Translated
o	Enter VJ Name (for translated only)
o	Choose Genre & Language
o	Upload subtitles (optional)
•	Manage:
o	Movie list (edit, delete)
o	User accounts (view, delete, ban)
________________________________________
⚙️ Tech Stack:
•	Frontend: React + Tailwind CSS
•	Backend: Node.js + Express
•	Database: MongoDB
•	Authentication: JWT
•	Fully responsive
•	Download button should work across mobile/desktop
________________________________________
🌐 Deployment:
•	Fully deployable outside Replit
•	Include step-by-step deployment instructions for:
o	Hosting backend on VPS or shared hosting (cPanel)
o	Hosting frontend (React build) on the same hosting or Netlify
o	Setting up MongoDB Atlas
o	Using .env for secrets
o	Production build for React app
________________________________________
🚀 HOW TO DEPLOY THE SYSTEM ON YOUR OWN HOSTING
Here’s how to deploy both frontend and backend on your own hosting provider (like Hostinger, cPanel, Namecheap, or a VPS).
________________________________________
🌐 1. HOSTING THE BACKEND (Node.js + Express)
A. If you are using VPS (Ubuntu/Linux):
1.	SSH into server (e.g., using PuTTY or Terminal)
2.	Install Node:
3.	sudo apt update
4.	sudo apt install nodejs npm
5.	Upload your backend folder using FTP or scp or Git.
6.	Navigate to backend folder:
7.	cd backend
8.	npm install
9.	Create a .env file:
10.	MONGO_URI=your_mongodb_connection_string
11.	JWT_SECRET=your_jwt_secret
12.	PORT=5000
13.	Start the server:
14.	node index.js
OR better:
npm install -g pm2
pm2 start index.js
pm2 startup
pm2 save
B. If you are using cPanel (Shared Hosting):
•	Most shared hosting does not support Node.js natively.
•	You will need to upgrade to Node.js-enabled hosting or deploy backend on a VPS/Render/Heroku.
•	Alternative: Host the backend on Render.com or Railway.app.
________________________________________
🖥 2. HOSTING THE FRONTEND (React app)
A. Local Production Build
1.	Inside your frontend folder:
2.	npm run build
This will create a /build folder.
B. Upload to Hosting
1.	Use cPanel's File Manager or an FTP client (like FileZilla)
2.	Upload contents of /build to your domain’s public_html folder.
3.	You may need to create an .htaccess file in public_html with:
4.	RewriteEngine On
5.	RewriteRule ^ index.html [QSA,L]
C. OR Host React on Netlify:
•	Go to https://netlify.com
•	Connect your GitHub repo or upload /build folder manually
•	Set base directory = /
•	Set build command = npm run build
________________________________________
☁️ 3. SETTING UP MongoDB Atlas
1.	Visit https://www.mongodb.com/cloud/atlas
2.	Create a free cluster
3.	Add a database, user & password
4.	Whitelist your IP address (or allow access from anywhere: 0.0.0.0/0)
5.	Copy the Connection URI and paste it into .env as MONGO_URI
________________________________________
🔐 4. ENV File Example
MONGO_URI=mongodb+srv://username:password@cluster.mongodb.net/dbname
JWT_SECRET=supersecuresecret
PORT=5000
________________________________________
✅ DONE!
