Skip to content

Instantly share code, notes, and snippets.

@javascripto
Created April 13, 2020 15:07
Show Gist options
  • Select an option

  • Save javascripto/ef4500db0ea9414824fcf786ad8349e6 to your computer and use it in GitHub Desktop.

Select an option

Save javascripto/ef4500db0ea9414824fcf786ad8349e6 to your computer and use it in GitHub Desktop.
JSON Server fake backend
{
"name": "json-db",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"postinstall": "if [ ! -f db.json ]; then echo '{\n \"products\": []\n}' > db.json; fi",
"start": "json-server --watch db.json --port 3001"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"json-server": "^0.16.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment