aboutsummaryrefslogtreecommitdiff
path: root/part2/phonebook/package.json
diff options
context:
space:
mode:
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"
}
}