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:
Get hands-on with 1400+ tech skills courses.