1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Angular 簡易サーバ(json-server)を使ってみる

Posted at

インストール

npm install -g json-server

返す値を登録する

保存場所は、.angularフォルダと同じところ

db.json
{
  "data": [
    {
      "id": 1,
      "name": "test1"
    },
    {
      "id": 2,
      "name": "test2"
    }
  ]
}

起動する

json-server --watch db.json    

image.png

確認する

ブラウザで確認する

http://localhost:3000/

image.png

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?