Publish and deploy Vue projects using node.js

Time:2021-9-23

Install express:

npm install express;

You also need to install a command tool:

npm install -g express-generator; 
//This must be installed globally, and relevant commands cannot be executed later

Create an express project:

express xxxxxxx;

Enter the project home directory:

cd xxxxxxx;

Install prerequisites:

npm install;

Start program:

npm start;

Put the packaged dist folder in the public folder so that you can access it through the file path

If you access the blank, modify the following two positions

Publish and deploy Vue projects using node.js


vue

This work adoptsCC agreement, reprint must indicate the author and the link to this article

You’re far from it!

Recommended Today

Lua language novice simple tutorial

1、 Foreword Lua is a lightweight and compact scripting language, which is written in standard C language and open in the form of source code. Its design purpose is to be embedded in the application, so as to provide flexible expansion and customization functions for the application. Lua can be applied in game development, independent […]