Where do i add 3rd party library functions to execute on app load?
-
Hi.
I am integrating the MirageJS framework into a Quasar app. In Vuetify, I would simply import Mirage in Main.js which fires on load. Where would i do that in Quasar? Not obvious to me. -
In a boot file. https://quasar.dev/quasar-cli/boot-files#Introduction
Scott
-
thanks, scott.
I am trying to pull in mirageJS which is a mocking framework that runs a server that proxies api calls and returns mock data.
when i add the server as a boot it doesn’t seem to get hit (or work). I’ll keep at it. Let me know if anybody out there has experience getting miragejs working with quasar. -
If it runs a server, then it shouldn’t be in a boot file. It needs to run as a server and you’d hit it with your API calls via Axios. Sorry, I only flew over what MirageJS is. If I may ask, what API server are you going to use?
Scott
-
I got it working, thanks a lot. Boot did the job
-
Ok. That’s good. Good to know I was actually right to begin with.
Scott