Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

A Node.js success story at the electrical training ALLIANCE

September 12, 2023
Michael Dawson Stephen W. Boyd
Related topics:
ContainersNode.js
Related products:
Red Hat build of Node.jsRed Hat OpenShift

    Red Hat and customers often work together as partners to help get an application across the finish line. In this article, Stephen (electrical training ALLIANCE) and Michael (Red Hat) share the story of one such collaboration that led to success with Node.js in production.

    The application

    The electrical training ALLIANCE (ETA) has the mission to develop educational materials for electrical workers. They do this by developing national standards for the education and training of electrical workers, creating standardized training curricula, and assisting in establishing local educational programs. A key part of this work is to develop and provide an application for the 275 training programs that will assist in the day-to-day operations supporting apprentices within the program from application through to graduation.

    Why Node.js?

    Node.js was a good fit for the training program application due to its natural affinity with the front end and because it allowed faster development and rollout along with streamlined user acceptance testing. The Red Hat build of Node.js was a choice that fit into ETA's deployment strategy as it is Red Hat-maintained, supported, container ready, and runs well in Red Hat OpenShift.  

    The journey

    Here we will summarize the process from initial development to deployment.

    Step 1: The CI/CD environment

    Working with Red Hat Consulting, the electrical training ALLIANCE settled on two OpenShift Dedicated clusters: one for non-production and one for production content. Tekton (openshift-pipelines) and Cockroach Cloud were chosen for the continuous integration and continuous deployment (CI/CD) platforms and for data persistence. Application images utilize Red Hat Quay and Red Hat containers for end-to-end Red Hat support and patching. These components are shown in Figure 1.

    ETA CI/CD infrastucture based on OpenShift
    Figure 1: Infrastructure components include Tekton and Cockroach Cloud for CI/CD and data persistence and Red Hat Quay and containers for patching and support.

    Step 2: Version 1 of the application using nginx and Node.js

    The project required a front-end and matching back-end for front-end (BFF) to help manage access to a number of existing services written in Quarkus. This is where Node.js came in as a fast and efficient stack on which to build the BFF. Conventional architecture led us to utilize an nginx container for reverse proxy and static asset hosting, along with a Node.js middleware container handling Red Hat OpenShift API Management, authentication, and authorization tasks. This architecture is shown in Figure 2.

    ETA application V1
    Figure 2: Version 1 of the application with nginx and Node.js.

    The initial version of the application exposed a key challenge due to how nginx must be built as an image (specifically the DNS resolution). There was no way to reuse the image between the non-production and production clusters described earlier, resulting in duplicate build pipelines with no guarantee that a build would succeed in production. This led the electrical training ALLIANCE to explore better options, resulting in version 2 of the application.

    Step 3: Version 2 of the application using Node.js and Next.js

    Since OpenShift provides load balancing, the electrical training ALLIANCE chose to remove nginx and migrate to a Next.js application backed by the Red Hat Node.js container. This allows for proper CI/CD where the image is built once in lower namespaces, tested, and promoted through to the production cluster with confidence.

    Looking at existing documentation, however, it was not clear how to use Next.js with the Red Hat Node.js container images. After reaching out for help, the electrical training ALLIANCE was pleased to discover that Red Hat had a dedicated Node.js team who was happy to jump in and help figure this out. The end result was a solution using a two-stage Dockerfile, which you can read more about in How to deploy Next.js applications to Red Hat OpenShift. This work resulted in the architecture shown in Figure 3.

    ETA Node.js application V2
    Figure 3: Version 2 of the Node.js application with Next.js.

    Step 4: Production success

    The next step was production deployment, which is a great success with the applications already having 4,000 active users and potentially growing to 40,000 active users each year as it rolls out across all training locations.

    In addition to supporting the initial applications, the Node.js solution was built as a pattern that can be reused for new products and the electrical training ALLIANCE is planning on rolling out many more.

    So far, it has been used for the development and production of two products, which include:

    • Training Administration System (TAS): This product has a number of functions, including:
      • First year online apprenticeship: This allows the electrical training ALLIANCE, partnered with ProTech Skills Institute, to deliver the first year of the apprenticeship's classroom training online. TAS manages the application process for the program, as well as the day-to-day management of the apprentices.
      • Pre-apprenticeship: This extends pre-apprenticeship to participating high school and trade schools.
      • VEEP - Veterans to Electrician: The VEEP program will utilize TAS for the same purposes while supporting the path to apprenticeship from our veterans.
    • Curriculum analysis and mapping utility: This product, developed for internal use, allows the electrical training ALLIANCE to map all of the curriculum against various industry requirements and evaluations to ensure the curriculum provided meets the needs of the industry.

    Learn more

    To learn more about the electrical training ALLIANCE, check out electricaltrainingalliance.org. If you want to learn more about what Red Hat is up to on the Node.js front, visit our Node.js page. 

    Last updated: September 19, 2023

    Related Posts

    • Optimize Node.js images with the UBI 8 Node.js minimal image

    • How to use OpenTelemetry to trace Node.js applications

    • Node.js serverless functions on Red Hat OpenShift, Part 1: Logging

    • How to add libraries to a Node.js container with S2I

    • Node.js Reference Architecture, Part 10: Accessibility

    Recent Posts

    • Federated identity across the hybrid cloud using zero trust workload identity manager

    • Confidential virtual machine storage attack scenarios

    • Introducing virtualization platform autopilot

    • Integrate zero trust workload identity manager with Red Hat OpenShift GitOps

    • Best Practice Configuration and Tuning for Linux and Windows VMs

    What’s up next?

    10 tips for nodejs cheat sheet tile card

    Run secure and efficient Node.js applications on OpenShift and other container environments. This cheat sheet rounds up 10 tips to help you learn best practices and get up to speed quickly.

    Get the cheat sheet
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Chat Support

    Please log in with your Red Hat account to access chat support.