Sobes.tech
Junior — Middle

How was the deployment process of the application carried out in your project?.

sobes.tech AI

Answer from AI

The application deployment process typically involves several stages:

  1. Build — installing dependencies (npm install), compilation (if using TypeScript or Babel).
  2. Testing — running automated tests to verify correctness.
  3. Environment preparation — configuring environment variables, settings.
  4. Deployment — copying files to the server or cloud, starting the application process.

In our project, CI/CD tools (such as Jenkins, GitHub Actions) were used to automatically perform build and tests upon pushing to the main branch. Then, the application was deployed on the server using PM2 — a process manager for Node.js that ensures restart on failures and log management.

Example command to start with PM2:

npm install
npm run build
npm test
npm run start
npm install pm2 -g
pm2 start dist/app.js --name my-app

Docker containers were also used for environment isolation and scaling simplification.

How was the deployment process of the application… - sobes.tech