Created a vue.js project in Phpstorm. in the readme.md file in the created project directory it is written that npm run serve should be run. Everything works perfectly the application is accessible from the browser.

I wrote my server based on node + express. Question: how to run the front on vue.js so that it communicates with my server on port 3008, for example.

  • If we are talking about data exchange with your server, that is, it has apiha and it is necessary to take data through it, then just knock on localhost: 3080 / apiHandle and watch what comes. npm run serve just starts the devserver with the hot reload module and, in fact, everything. And in order to communicate with your server, well, put some axios and take everything you need from the server. - Alex Sazonov

0