Skip to main content
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 Red Hat 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

    • Red Hat OpenShift AI
    • 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.

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.

    • Guided learning

      Receive custom learning paths powered by our AI assistant.

    • 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

    • 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.

ConsoleDocsSupport Search
New For you

Recommended

We'll recommend resources you may like as you browse. Try these suggestions for now.

  • Product downloads
  • Cheat sheets
  • Red Hat Developer learning portal
  • Developer blog
  • E-books
  • Developer Sandbox
Log in

Get more with a Red Hat Developer account

  • Product downloads
  • Console access
  • Event registration
  • Training & trials
Explore more account benefitsLog in or register

A subscription may be required for some services.

Contact us

How to deploy Vue.js applications to OpenShift

January 16, 2024
Yashwanth Maheshwaram
Related topics:
KubernetesRuntimes
Related products:
Red Hat OpenShift

    Red Hat OpenShift is a unified platform to build, modernize, and deploy applications at scale. Red Hat OpenShift offers a great developer experience in shipping your applications to the cloud.

    JavaScript (JS) is the most popular programming language, used by millions of developers around the world. While it’s one programming language, there are many popular frameworks within JavaScript that need different approaches.

    In this series of articles, we are putting together a step-by-step guide that will enable you to be up and running JS applications on OpenShift. We expect you to have some familiarity with Vue.js and Red Hat OpenShift. Just in case you need a quick recap, check out these resources:

    • Video: Developer Sandbox for Red Hat OpenShift
    • Developer Sandbox for Red Hat OpenShift
    • Vue.js website
    • Containerfile

    How to deploy a Vue.js application on OpenShift

    The Developer Sandbox for Red Hat OpenShift is a free-to-use OpenShift instance for you to experiment with OpenShift for your use cases. The development of dynamic and responsive web applications has evolved into a fundamental requirement. Node.js and Vue.js stand out as formidable technologies capable of crafting these applications with finesse. Our workflow involves the creation and deployment of applications directly from GitHub onto an OpenShift sandbox environment.

    Follow these steps to start your sandbox instance and deploy your Vue.js app:

    1. Create a Developer Sandbox account at https://developers.redhat.com/developer-sandbox.
    2. Once you have the account and are signed in, On the left side menu, click +Add.
    3. Select Import from Git.
    4. Specify your Git repo URL. For the sake of this tutorial, we use https://github.com/redhat-developer-demos/vue.js-openshift-example, but you can choose any Vue.js repo.
    5. Add a Containerfile to your repo. The Containerfile helps developers to specify the environment needed for running your applications. If you do not have a Containerfile on your project, you can add add one to your repo by referring to https://github.com/redhat-developer-demos/vue.js-openshift-example/blob/main/Containerfile.
    6. OpenShift will detect the Containerfile from the Git repository. If the Containerfile is in a subdirectory, you need to provide the path of Containerfile. 
     

    Info alert: Note

    If the Containerfile/Dockerfile is not detected, click Import Edit Strategy. Select as Dockerfile, define the path as Containerfile.

    1. Choose a  Resource Type field, choose either Deployment or Serverless Deployment (default option) depending on your preference.
    2. Select Target Port under Advanced options to define the port 8080 that will receive the container's traffic.
    3. Click Create.
    4. You will now be directed to the Topology view, and the application will commence deployment. Please allow some time for the build and deployment process to complete. While it is in progress, you will have the opportunity to monitor the logs.
    5. Once it’s done deploying, you can click on the ↗ OpenURL icon to see the webpage of your Vue.js application running on OpenShift.

    Add continuous deployment

    Continuous deployment (CD) is a strategy in software development where code changes to an application are released automatically into the production environment. It speeds up time to market by eliminating the lag between coding and customer value. OpenShift enables developers to configure this using a few simple UI-based steps.

    Now, let’s begin adding CD to the application we just created:

    1. From the Topology view, select the application.
    2. Click on the Actions drop-down.
    3. Select Edit <application name>.
    4. Check the Add pipeline checkbox. You can see the pipeline visualization if you’d like to understand the steps.
    5. Click Save.

    Trigger the CD pipeline

    A pipeline of applications is triggered when an application in the Git repository is updated:

    1. Create your application and add the remote Git repository (or copy the above repository).
    2. Modify, commit, and push the source files.
    3. Log in to the Developer Sandbox.
    4. Access your application in the Topology View.
    5. Select Pipeline option from the left menu.
    6. Checkout live build and deploy process.
    7. You can see your changes being deployed automatically.

    Conclusion

    In this tutorial, you learned how to deploy a Vue.js application on Red Hat OpenShift. Red Hat OpenShift has powerful features that make it easy to manage and scale your Vue.js application in production. To learn more, explore the resources on our OpenShift product page.

    Check out the other articles in this series:

    • How to deploy Next.js applications to OpenShift
    Last updated: January 30, 2024

    Related Posts

    • Getting started with JavaScript application development

    • Making environment variables accessible in front-end containers

    • Building rootless containers for JavaScript front ends

    • How Node.js uses the V8 JavaScript engine to run your code

    • Javascript Engine & Performance Comparison (V8, Chakra, Chakra Core)

    • How to deploy Next.js applications to OpenShift

    Recent Posts

    • A day in the life of an NVIDIA H100 on Red Hat OpenShift 5

    • Migrate BuildConfigs to builds for Red Hat OpenShift with one plug-in install

    • Run Red Hat Enterprise Linux CoreOS on NVIDIA BlueField DPUs

    • Agent harness engineering: Separating model capabilities from enforcement

    • What's new for developers in Red Hat Enterprise Linux 10.3 and 9.9

    What’s up next?

    Learn how to deploy a full-stack JavaScript application in an OpenShift cluster with this hands-on lab. Starting from source code, you'll take an application that runs locally and deploy it in the Developer Sandbox for Red Hat OpenShift.

    Get started
    Red Hat Developers logo

    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
    Ask AI