The chat for Proyectos Beta (proyectosbeta.net)
- NodeJS 14.19.3
- NPM 6.14.17
- Socket.io 4.5.1
- Express 4.18.1
- Sonarqube 9.5.XX
npm i
npm start
http://localhost:3000/
docker pull sonarqube
docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube
http://localhost:9000
- User: admin
- Password: admin
docker pull newtmitch/sonar-scanner
Execute
docker run -ti -v /home/proyectosbeta/repositoriosGit/chat-web:/usr/src --link sonarqube newtmitch/sonar-scanner
Execute
docker run -ti -v C:\Users\proyectosbeta\repositoriosGit\chat-web:/usr/src --link sonarqube newtmitch/sonar-scanner
Pm2 is a tool for Node.JS application production environments, basically this tool helps us to launch our application as a daemon service on our server.
npm install pm2 -g
We must create a daemon with PM2 so we stop the server and execute the following command:
pm2 start /home/proyectosbeta/repositoriosGit/chat-web/app/server/index.js --name chat-web
We need to configure the server startup script.
pm2 startup
sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u proyectosbeta --hp /home/proyectosbeta