[Vuejs]-Vue without vue-cli, run on an express server

1👍

The webserver you use is immaterial. It’s all client-side.

Just use the static module to serve up the files as you would for any other client-side JS file and static HTML document.

-1👍

You can run your server as normal. So, run npm install.
Set up your package.json (npm init) and in your server, use the express modules like static (which gets your files from the public folder) You can also use bodyParser (which lets you use the body of your requests through req.body). This is useful for using GET and POST requests.

Leave a comment