aboutsummaryrefslogtreecommitdiff
path: root/part2/phonebook/package.json
diff options
context:
space:
mode:
authorIbrahim Mkusa <ibrahimmkusa@gmail.com>2023-05-01 22:17:46 -0400
committerIbrahim Mkusa <ibrahimmkusa@gmail.com>2023-05-01 22:17:46 -0400
commit9c2ad9bee21ea2bc92ee0eac4d12bb7878fa8bdb (patch)
tree564bf94fda75e34d10820e1bbdc306b28b4c5e92 /part2/phonebook/package.json
parent640dd85891473cb35b5d997ad3beef0e02524c00 (diff)
ex2.11 use data from json-server, employ axios libplay-with-json-server
Diffstat (limited to 'part2/phonebook/package.json')
-rw-r--r--part2/phonebook/package.json7
1 files changed, 6 insertions, 1 deletions
diff --git a/part2/phonebook/package.json b/part2/phonebook/package.json
index 22b98cd..0c5589f 100644
--- a/part2/phonebook/package.json
+++ b/part2/phonebook/package.json
@@ -6,6 +6,7 @@
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
+ "axios": "^1.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
@@ -15,7 +16,8 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
- "eject": "react-scripts eject"
+ "eject": "react-scripts eject",
+ "server": "json-server -p 3001 --watch db.json"
},
"eslintConfig": {
"extends": [
@@ -34,5 +36,8 @@
"last 1 firefox version",
"last 1 safari version"
]
+ },
+ "devDependencies": {
+ "json-server": "^0.17.3"
}
}