BEGIN API
run mkdir api
run npm install json-server
edit package.json
{
"name": "api",
"version": "1.0.0",
"main": "index.js",
"scripts": {"start": "json-server -p 3001 -w db.json"},
"license": "MIT",
"dependencies": {
"json-server": "^0.15.1"
}
}
create file named db.json
edit db.json
{
"books": []
}
runnpm start
END API
then cd..
then cd client
runnpm start