- Node Version 22
# install packages
npm install
# Testing The Applications
npm check
# For Run the application
npm start
-
Cleanup: Removes existing process if running
pm2 delete node-app || true
-
Start Application: Launches with absolute path
pm2 start "./src/server.js" --name node-app
-
Save Process List: Persists PM2 configuration
pm2 save
-
Route: This Application has 2 route
/ # this will show a hello world page
/api # this will response a json
-
Default Port: By Default this application will run on port 3000