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



  • 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!


Log in to reply
 

Looks like your connection to Quasar Framework was lost, please wait while we try to reconnect.