I would like to use Vue.js for the front-end and ASP.NET and Umbraco API controllers for the back-end. My question is just how to start to set the foundations of the project? Which packages to install first?
Step by step would be very helpful. Thanks
Umbraco templates give you a clean slate, so you're free to choose your desired JS framework. As a result of this, there is no Umbraco-specific way to include Vue.js - or any other JS framework for that matter.
You could load Vue.js simply by adding the following line to your (master) view:
Integrate Vue.js with UmbracoCms in one project
I would like to use Vue.js for the front-end and ASP.NET and Umbraco API controllers for the back-end. My question is just how to start to set the foundations of the project? Which packages to install first? Step by step would be very helpful. Thanks
Hi Kevin,
Umbraco templates give you a clean slate, so you're free to choose your desired JS framework. As a result of this, there is no Umbraco-specific way to include Vue.js - or any other JS framework for that matter.
You could load Vue.js simply by adding the following line to your (master) view:
And then use a package like Axios to communicate with your API controllers:
https://github.com/axios/axios
Creating API controllers doesn't require any additional packages in Umbraco, so you should be good to go with your own code ;)
Are you aware of how to handle cross domain issues? Say my umbraco site is on a different domain or sub domain than my APIs?
is working on a reply...