nodejs 运行vue_如何在minikube上使用nodejs api运行vue js

nodejs 运行vue

Most of the companies are adopting some kind of container orchestration and running all their modern apps on Kubernetes. It’s always convenient to run the apps on Minikube which is a single-node Kubernetes cluster that can be installed on your local machine. In this post, we can deploy and run Vue with nodeJS backend API on Minikube on our local machine.

大多数公司都采用某种容器编排,并在Kubernetes上运行其所有现代应用程序。 在Minikube上运行应用程序总是很方便的,Minikube是可以安装在本地计算机上的单节点Kubernetes集群。 在本文中,我们可以在本地计算机上的Minikube上使用nodeJS后端API部署和运行Vue。

  • Introduction

    介绍

  • Example Project

    示例项目

  • Run it On Docker

    在Docker上运行

  • Publishing the Docker Image

    发布Docker映像

  • Create a Deployment and Service Objects

    创建部署和服务对象

  • How to access deployment from the browser

    如何从浏览器访问部署

  • Summary

    摘要

  • Conclusion

    结论

介绍 (Introduction)

Minikube is a tool that runs a single-node Kubernetes cluster in a virtual machine on your personal computer. We are going to deploy and run the Vue app with NodeJS API on MInikube in this article. First, we create this project and run it normally, then we will run the same on the Docker and, finally, we create a deployment and service objects to deploy and run it on Kubernetes locally.

Minikube是一种工具,可在您的个人计算机上的虚拟机中运行单节点Kubernetes集群。 本文中,我们将在MInikube上使用NodeJS API部署和运行Vue应用程序。 首先,我们创建该项目并正常运行,然后在Docker上运行该项目,最后,创建一个部署和服务对象以在Kubernetes上本地部署和运行它。

We are going to need some pre-requisites to complete this project or run it on your local machine.

我们将需要一些先决条件才能完成此项目或在本地计算机上运行它。

示例项目 (Example Project)

This is a simple project which demonstrates developing and running Vue application with NodeJS. We have a simple app in which we can add users, count, and display them at the side, and retrieve them whenever you want.

这是一个简单的项目,演示了如何使用NodeJS开发和运行Vue应用程序。 我们有一个简单的应用程序,可以在其中添加用户,计数并在侧面显示它们,并在需要时检索它们。

Image for post
Example Project 示例项目

Since we are focusing on running the whole project on the Minikube we are not going to develop this project in this post. If you are not familiar with the whole process of developing a Vue app with the NodeJS backend you can go through the below post.

由于我们专注于在Minikube上运行整个项目,因此在本文中不打算开发此项目

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值