IncrelogEMS - Windows Hosting Deployment Package ================================================ Complete, ready-to-run production package. Dependencies (node_modules) are INCLUDED - no npm install needed. Unzip and start. REQUIREMENT ----------- Node.js 20+ installed on the Windows server. HOW TO START (choose one) ------------------------- 1. Standalone : double-click start-server.bat (or run: node app.js) - listens on port 3011 (.env PORT) 2. IIS/iisnode: site physical path = this unzipped folder, startup / entry file = app.js (web.config is included and already rewrites all traffic to app.js) IMPORTANT: the entry file is app.js in the ROOT of this folder. Do NOT use public/app.js - that is only a browser theme script (sidebar behaviour), not the server. HOW TO VERIFY IT IS RUNNING --------------------------- Open: https://:3011/health/ready Expected response: {"status":"ok","checks":{"database":"up"}} Startup banner should show: Port : 3011 If you ever see port 3007 or a ".next/BUILD_ID missing" message, an OLD app.js is being started - delete it and start the app.js from THIS package. FIRST LOGIN ----------- Central panel: admin@increlogems.com / Admin@123 Change this password immediately after first login. FOLDER NOTES ------------ build/ compiled Next.js production bundle (this is the ".next" content - renamed via distDir in next.config.js; do NOT rename it to .next) server/ operational layer (security headers, compression, rate limiting, health probes) .env PRODUCTION configuration (database, SESSION_SECRET, BASE_URL, SMTP) - keep private, contains credentials node_modules/ pre-installed, Prisma client already generated src/ full source tree (src/app/api is scanned at boot) SECURITY: this package contains real production credentials in .env. Keep the zip and the unzipped folder private.