No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Where do i add 3rd party library functions to execute on app load?

    CLI
    2
    6
    577
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Mel last edited by

      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. 😕

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        In a boot file. https://quasar.dev/quasar-cli/boot-files#Introduction

        Scott

        1 Reply Last reply Reply Quote 1
        • M
          Mel last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • s.molinari
            s.molinari last edited by

            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

            1 Reply Last reply Reply Quote 0
            • M
              Mel last edited by

              I got it working, thanks a lot. Boot did the job

              1 Reply Last reply Reply Quote 0
              • s.molinari
                s.molinari last edited by s.molinari

                Ok. That’s good. Good to know I was actually right to begin with. 😁

                Scott

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post