[{"data":1,"prerenderedAt":99},["ShallowReactive",2],{"seo-verification":3,"marketplace-app-en-nodejs-stack":6},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"slug":7,"name":8,"description":9,"phase":10,"docsUrl":11,"logo":12,"github":13,"tagline":14,"longDescription":15,"features":16,"useCases":23,"steps":33,"faq":46,"specs":59,"compatibleOs":68,"relatedApps":70,"relatedPosts":95,"category":96},"nodejs-stack","Node.js Stack","Node.js with PM2, an Nginx reverse proxy and a database. Your JavaScript APIs and applications ready to take traffic.",1,"https:\u002F\u002Fservorbit.com\u002Fblog\u002Fdeployer-nodejs-app-vps","https:\u002F\u002Fcdn.simpleicons.org\u002Fnodedotjs","https:\u002F\u002Fgithub.com\u002Fnodejs\u002Fnode","Node.js, PM2, Nginx and a database — a production environment for your JavaScript APIs and apps.","The Node.js Stack template provides a production-ready environment for your JavaScript and TypeScript applications: Node.js LTS, PM2 as the process manager, Nginx as a reverse proxy, and PostgreSQL or MongoDB depending on your needs. PM2 handles clustering, automatic restarts and monitoring of your Node processes.\n\nWhether you deploy an Express\u002FFastify API, a NestJS application or a WebSocket server, this template configures the essential components — log management, multi-core clustering, secure environment variables — so you can focus on your code.",[17,18,19,20,21,22],"Node.js LTS (recommended stable version)","PM2 for clustering, monitoring and automatic restart","Nginx reverse proxy with header management","PostgreSQL and secure environment variables","NVM installed to switch Node versions easily","PM2 and Nginx logs configured with rotation",[24,27,30],{"title":25,"body":26},"Node.js REST API","Deploy an Express, Fastify or NestJS API in production with PM2 cluster mode to use every CPU core.",{"title":28,"body":29},"Real-time application","Host a WebSocket server or a Socket.io application with PM2 handling restarts automatically.",{"title":31,"body":32},"Full-stack JavaScript backend","A server for a Next.js, Nuxt (SSR) or Remix application in production mode.",[34,37,40,43],{"title":35,"body":36},"Create the VPS","Select the \"Node.js Stack\" template when ordering. Minimum 2 GB RAM.",{"title":38,"body":39},"Deploy your application","Clone your repository, install the dependencies with `npm ci --production`, and build if needed.",{"title":41,"body":42},"Start with PM2","Launch with `pm2 start app.js --name \"mon-api\" -i max` for cluster mode. Save with `pm2 save` and `pm2 startup`.",{"title":44,"body":45},"Configure Nginx","Edit the Nginx virtualhost to point to your Node application's port. SSL with Certbot.",[47,50,53,56],{"q":48,"a":49},"Which version of Node.js is installed?","The latest stable LTS version. NVM is available to switch versions easily depending on your project's needs.",{"q":51,"a":52},"Why use PM2 rather than `node` directly?","PM2 automatically restarts your app if it crashes, handles multi-core clustering, keeps processes alive after a reboot and centralizes logs.",{"q":54,"a":55},"Can a NestJS app be deployed on this template?","Yes. NestJS is a standard Node.js framework — the template is compatible with all frameworks based on Node.js.",{"q":57,"a":58},"How do I manage environment variables?","Create a `.env` file in your project and reference it in your PM2 config, or use `pm2 start ecosystem.config.js` with the variables defined.",{"ram":60,"cpu":61,"stack":62},"2 GB","1 vCPU",[63,64,65,66,67],"Node.js LTS","PM2","Nginx","NVM","PostgreSQL",[69],"ubuntu-24.04",[71,80,86],{"name":72,"slug":73,"categorySlug":74,"categoryName":75,"categoryColor":76,"logo":77,"tagline":78,"description":79},"Nuxt Stack","nuxt-stack","developpement","Development","text-warning bg-warning\u002F10","https:\u002F\u002Fcdn.simpleicons.org\u002Fnuxt","Nuxt 3 with SSR, PostgreSQL and a reverse proxy — a production environment for your Vue.js apps.","Nuxt 3 with SSR, PostgreSQL and a reverse proxy. A production environment for your Vue.js applications.",{"name":81,"slug":82,"categorySlug":74,"categoryName":75,"categoryColor":76,"logo":83,"tagline":84,"description":85},"Laravel Stack","laravel-stack","https:\u002F\u002Fcdn.simpleicons.org\u002Flaravel","PHP-FPM, Nginx, PostgreSQL, Redis and Supervisor — a production-ready Laravel stack from the moment you order.","PHP-FPM, Nginx, PostgreSQL, Redis and Supervisor preconfigured. Deploy Laravel to production with no initial configuration.",{"name":87,"slug":88,"categorySlug":89,"categoryName":90,"categoryColor":91,"logo":92,"tagline":93,"description":94},"Coolify","coolify","deploiement","Application Deployment & DevOps","text-success bg-success\u002F10","https:\u002F\u002Fcdn.simpleicons.org\u002Fcoolify","Deploy from Git in seconds — a self-hosted alternative to Heroku, Render, and Netlify.","Deploy your applications from Git in seconds. Self-hosted, with no vendor lock-in, and automatic SSL.",[],{"key":74,"slug":74,"name":75,"objective":97,"icon":98,"color":76},"Kick off a software project quickly.","dev",1785628470383]