Brammah liked a comment+100 XP
1mo ago
@richard Whoops! Must have been an auto-complete accident. Sorry about that.
I meant @jred_lewis.
Brammah liked a comment+100 XP
1mo ago
Brammah wrote a comment+100 XP
1mo ago
@impbob36 Use Concurrently and make it OS-aware.
{
"scripts": {
"serve-static": "npx serve",
"api": "npx json-server db.json -p 3001",
"start": "concurrently \"npm run serve-static\" \"npm run api\""
},
"devDependencies": {
"concurrently": "^9.2.1",
"json-server": "^1.0.0-beta.15"
}
}
Brammah liked a comment+100 XP
1mo ago
@impbob36 On windows 11 it works using concurrently package https://stackoverflow.com/a/30950298/4995257
Brammah wrote a comment+100 XP
2mos ago