[Vuejs]-Conventions project with PHP and VueJs?

1👍

I personally prefer it to be independent and would download the necessary files and integrate it directly.

  1. Download the development version: https://vuejs.org/js/vue.js and the production version: https://vuejs.org/js/vue.min.js
  2. Copy this files into the public/js folder
  3. Add a script tag: <script src="js/vue.min.js"></script>
👤odan

1👍

I don’t get what the really point is on your question, but:

In your case I would use a framework like laravel, symfony, zend, …
This gives you routing and stuff.

If you want to write the framework yourself (for learning, like you’ve mentioned) the you should take your brain and implement a concept on how you would like to define the routings.

Concerning VueJs: I think there should be no problem using the CDN-Version. It keeps things simple, until you really need to build VueJS on your development-PC (later within your deployment-process).

As said: Do one step after another. First use the simple way. Implement a simple Routing. Use VueJS from CDN. And when things get serious: Extend the code by your needs. Include VueJS via NPM and stuff like that.

👤gth44

Leave a comment