S
S
Samat2021-04-18 04:50:28
Express.js
Samat, 2021-04-18 04:50:28

Node.js + express.js + vue, how to link?

I have a server written in express.js
AND I have a front end written in vue.js

How to connect them?
Is it possible to make it so that I would give the build made on vue.js to the get request '/'?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kirillcka_markoff, 2021-04-18
@kirillcka_markoff

If I understand the question correctly, then you need to set up a server (nginx for example), one virtual host proxies express, the second gives statics.

G
gomerIT, 2021-04-19
@gomerIT

Have a look at NuxtJS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question