How to use make a JSON Server?

Matthias Furtlehner 1 Reputation point
2021-06-06T17:43:08.007+00:00

JSON SERVER
npm init -y -> package.json erstellen
"start": "json-server --watch db.json" (in package scripts schreiben)
[npm install json-server]
npm start

JAVASCRIPT SERVER
npm init -y -> package.json erstellen
"start": "live-server --port=4000" (in package scripts schreiben=
[npm install json-server]
[npm install w3-css]
npm start

FEHLER
json oder live server nicht installiert sind -> npm install -g (json/live)-server -y
port passt nicht --port 0
"server": "json-server --watch db.json"
https://www.npmjs.com/package/json-server

Microsoft 365 and Office Development Office JavaScript API
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Matthias Furtlehner 1 Reputation point
    2021-06-06T18:01:16.077+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.