Skip to content

Cphdat3sem2018f/code_jsonserver_with_errors

Repository files navigation

Modified json-server that creates json-error responses

Getting started

  • 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

run the server in any of the following ways:

  • npm start Run the server with CORS headers, using the file users.json and no auto-fail
  • npm 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published