...

/

Project Solution: Node.js Application

Project Solution: Node.js Application

Now let us have a look at the files used in the Node.js app.

Node.js build process

Client-side files in the src directory are processed using npm scripts and output to a static directory. This is shared as a Docker volume so NGINX can serve HTML, CSS, and JavaScript requests without Express.js processing.

Production mode build

Production environment build scripts are defined in the package.json "scripts" section:

Access this course and 1400+ top-rated courses and projects.