[Vuejs]-How to import mongo db in vue js 2?

2👍

VueJS is frontend framework.

You definitely should not try to deal with DB directly from Vue.

You should have backend made with any language/framework you want: NodeJS(if you want to stick with JS), ASP.NET(C#), Spring(Java) etc. and your backend should deal with DB and you should only make AJAX requests to your backend and send/get back JSONs and deal with JSONs on frontend with Vue.

Leave a comment