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

    Anyone know how to get "quasar dev mat mock-api" to run json-server on hot dev build?

    CLI
    1
    1
    1059
    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.
    • Q
      quasar_noob last edited by

      To anyone that can help…

      I’m working on an app using Quasar CLI … and trying to configure package.json (in root) to use json-server … i.e. so when I do “quasar dev mat start-mockapi” which runs the app locally on 8080… it would also run json-server on port 3000 …
      – I tried adding “start-mockapi”: “json-server --watch src/api/db.json --port 3000” in the scripts section of my package.json but it didn’t work…
      – right now I have to run “json-server --watch db.json” in a SEPARATE cmd console… and it works… but that’s tedious… and not clean
      So… does anyone know how to get this to work with one cmd line?
      ** the goal is to get it working in one console… without having to run two consoles…

      Thanks in advance!

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