Modified json-server that creates json-error responses
- If not alredy done, install nodejs
- Clone this project
- In the folder it was cloned into, type npm install
- Place this file: users.json into the ROOT of the project
npm start
Run the server with CORS headers, using the file users.json and no auto-failnpm run autofail
Run the server with CORS headers, using the file users.json. Randomly generates server faults (status:500)npm run autofailnocors
Run the server WITHOUT CORS headers, tusing he file users.json. Randomly generates server faults (status:500)npm run nocors
Run the server WITHOUT CORS headers, using the file users.json and with no auto-fail