Tarrask / sails-template

Starter template for Nuxt.js with SailsJS. https://nuxtjs.org
14 stars 6 forks source link

Congrats #2

Open mrtnzagustin opened 4 years ago

mrtnzagustin commented 4 years ago

Im here just to say: very nice project. We use sails and nuxt for ecommerce and general purpose an this approach with the hook and re-generating is very nice. You could add a nodemon to app.js instead of sails lift to check backend changes also.

Regards

Tarrask commented 4 years ago

Hi, thank you.

You can use nodemon by just changing the dev script in package.json to nodemon app.js. It will restart the server when a file changes. The problem with that is that it will restart the client too ... with long compile time. One can not restart the serverside without restarting clientside when both side are in a single node instance. Actually, it's one reason that I'm not using this anymore. I currently just create 2 servers : a server side api only server (with sails.js, express or fastify) and a nuxt server using the nuxt built-in server. Using axios with proxy works very well.

I hope this is usefull for you, regards

mrtnzagustin commented 4 years ago

Same here, we also work with two different projects. Regards and keep on the use of this great fw!