Red Hat OpenShift is a Kubernetes distribution that makes it easy to deploy and scale applications in the cloud. Since Node.js is a popular runtime environment that runs well in container environments, they are well suited for each other.
Below is a list of essentials for any Node.js developer looking to start deploying their applications on Openshift
Common Deployment Patterns
When using a container platform such as Openshift, there are multiple ways to deploy your Node.js applications. We have found that the following patterns have been successful when deploying. It should be noted that even though these posts use Next.js, using other frameworks such as Express.js or Fastify could be easily substituted.
How to deploy Next.js applications to Red Hat OpenShift
Openshift Pipelines and Node.js: Part 1 - Next.js | Red Hat Developer
Self Paced
For those that benefit from following along and trying it yourselves, we have a learning path for deploying a popular framework, Express.js.
This learning path provides an introduction to cloud-native development with Node.js. You will walk through building cloud-native Node.js applications, incorporating typical components like observability components for logging, metrics, and more.
Develop cloud-native Node.js applications with Express.js | Red Hat Developer
Full Stack
Node.js isn’t just used to create REST APIs as was seen in the previously mentioned sections, it can also be used when developing a front-end application. This is commonly known as Full Stack development.
If that sounds like something you are interested in, check out this multi-part series that creates both a backend and frontend which is then deployed to Openshift all using the Openshift Sandbox
How to deploy full-stack JavaScript applications in OpenShift | Red Hat Developer
Helpful Tips
For those that would like to run secure and efficient Node.js applications on OpenShift this cheat sheet rounds up 10 tips to help you learn best practices and get up to speed quickly.
10 tips for running Node.js applications on OpenShift | Red Hat Developer
Conclusion
As always if you want to learn more about what the Red Hat Node.js team is up to check these out:
https://developers.redhat.com/topics/nodejs
https://developers.redhat.com/topics/nodejs/openshift
https://github.com/nodeshift/nodejs-reference-architecture
https://developers.redhat.com/e-books/developers-guide-nodejs-reference-architecture