Questions tagged [node.js]

An open-source, cross-platform Javascript interpreter and run-time environment. Mostly used for server-side web-app programming and various command-line tools.

It uses the V8 Javascript interpreter engine from the Google, whose non-blocking asynchronous behavior offers high speed.

Its npm package manager became a quasi-standard for Javascript library package management.

Widely uses the Mocha and Chai test frameworks.

39 questions
14
votes
2 answers

Does `npm audit` add any value when using `dependabot`

Context There are multiple ways to scan projects for vulnerabilities. Dependabot can be configured to check repositories for issues, and automatically submits pull requests to resolve. NPM Audit will scan the packages used in an NPM solution for…
JohnLBevan
  • 315
  • 1
  • 3
  • 11
9
votes
2 answers

How does dependency management for Node.js differ from Maven?

Strange enough node.js unlikely maven installs the packages the software needs inside the project directory. Is there a way to introduce a central repository which also caches different versions of components and would allow to pull them on build…
Ta Mu
  • 6,792
  • 5
  • 43
  • 83
7
votes
2 answers

How should CI/CD deploy to production environment - copy artifacts or git pull from the server?

We have an internal CI/CD server running private GitLab. It has the source code of our NodeJS project. We would like to run CI/CD and have it deploys to our on-premises production server. (Let's assume we are using the master branch). Here are two…
6
votes
1 answer

Nginx reverse proxy setup issues with Docker containers

I have two running docker containers: A Docker container running Nginx that serves Angular app resource files that were copied into the Docker image on docker build A Docker container that is an api that is current listening on port 5007 internally…
Brian Ogden
  • 381
  • 1
  • 4
  • 11
6
votes
1 answer

Can I use Bitnami Helm Chart to deploy Redis Stack?

Background Currently, I am deploying a redis container using the [redislabs/redismod] (https://hub.docker.com/r/redislabs/redismod) image in the same pod as the application (nodejs). We are utilizing the RediSearch and RedisJSON modules to access…
virenstack
  • 61
  • 2
4
votes
1 answer

node js deployment on production server

I wanted to know standard process to deploy nodejs app on production. As of now I am following the process as below Pull the source code git pull git_url Install npm dependencies npm install Build the code npm run build run the application nohup…
Sunil Bhoi
  • 61
  • 2
4
votes
3 answers

Docker Container always stopped and started

I am using docker compose to build two containers, one is nodejs with pm2 and another is nginx. The nginx one runs well but the nodejs with pm2 one keeps restarting: it runs for one second, then stops for ~10 seconds, then starts again and runs for…
spacetrack
  • 103
  • 1
  • 2
  • 8
4
votes
1 answer

How not expose my backend

I'm studying Docker and how to properly publish my containers coding a very simple web application. It has only two containers, backend and frontend. I've published the source code here: https://github.com/sinayra/hello-private-world If I run…
Sinayra
  • 43
  • 3
3
votes
3 answers

How to cache node_modules folder when using Jenkins Multibranch Pipeline

I'm using Jenkins Multibranch Pipeline to handle my CI/CD and I'd like to know if is there a way to cache my node_modules folder? Every time I push a branch, I execute yarn to install the dependencies. when is master branch, it took 1s to execute…
Pedro Arantes
  • 133
  • 1
  • 1
  • 5
3
votes
1 answer

Bamboo equivalent to Jenkins color

I'm currently building out a radiator screen to bridge a few different areas of our CI\CD pipeline, pulling in metrics as well as build statuses. We're also migrating from Jenkins to Bamboo In Jenkins, when you do a rest call to the job/api/json it,…
3
votes
1 answer

Why is my build script only failing when it is run in a vNext build?

I am running a build process on an on-prem server with TFS 2017 and vNext. The build works, but it takes 20+ minutes. This is an application that does msbuild, ngc, yarn, and karma. I would be totally fine with leaving it the way it is except for…
Aaron
  • 41
  • 3
2
votes
1 answer

Is web delivery for Node.js apps a thing?

A browser fetches some HTML via HTTP/HTTPS or a file, which may result in fetching a bunch of other resources, including some JavaScript, and then it runs it in a browser environment. I would describe this as a mechanism for delivering code to the…
Wyck
  • 121
  • 3
2
votes
2 answers

Preinstall packages for a nodejs Docker Image according to package.json

I would like to prepare a Docker image for a nodejs project. The developers use package.json to list their node module dependencies. I would like to prepare the Docker image (as base on the Dockerfile), with most of the node_modules already…
orberkov
  • 195
  • 7
2
votes
0 answers

How to make fast JSON responses (or equivalent) between server app and front-end apps all running on OpenShift?

I have a system with 5 source data stores (mostly PostgreSQL databases) from which, I want to connect them all to containers running on OpenShift: A library of react applications who's components make AJAX requests for data feeds from a thin server…
Bendy
  • 121
  • 1
2
votes
2 answers

Automatic production deployment for a Node.js app on RHEL 7?

I am looking for some way to have a maximally simple(no Jenkins or anything like that) automatic production deployment for a Node.js application on a RHEL 7 system. The caveat is: At the organization where I work, we have a very restricted IT…
Megakoresh
  • 139
  • 5
1
2 3