[Vuejs]-How to get vueify running with Sails JS and Browserify?

2πŸ‘

βœ…

I am afraid you do not fully understand how VueJS and SailsJS work.

I would suggest the way which I am working and many other people do.
SailsJS does not need Browserify at all. You could consider it if you would be using only small VueJS components, but it would still not be necessary.
Sails serving you an API.
Browserify is needed only for your VueJS project. VueJS is to consume your API.

My suggestion is to totally split backend and frontend projects and work on them separately in IDE. In dev env set up proxy for your /api requests to point localhost:1337.
On the end, you will build VueJS project and put it in your Sails app assets. That’s all.

Leave a comment